~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to server/scripting/api_intl.c

  • Committer: Package Import Robot
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2011-08-28 22:40:00 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: package-import@ubuntu.com-20110828224000-j2r1erewlem25dox
Tags: 2.3.0-1
[ Karl Goetz ]
* New upstream version.
* Fix themes_sdl_use_system_fonts.diff to apply cleanly on 2.3.0
* Massage work_around_unity_induced_breakage.diff to get it
  applying to the new codebase (The patch assumes commits made
  after 2.3.0 was tagged upstream).

[ Clint Adams ]
* Fudge build system to think there is no libtool mismatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "script.h"
22
22
 
23
23
const char *api_intl__(const char *untranslated) {
24
 
  SCRIPT_ASSERT(NULL != untranslated, NULL);
 
24
  SCRIPT_CHECK_ARG_NIL(untranslated, 1, string, "");
25
25
  return _(untranslated);
26
26
}
27
27
 
28
28
const char *api_intl_N_(const char *untranslated) {
29
 
  SCRIPT_ASSERT(NULL != untranslated, NULL);
 
29
  SCRIPT_CHECK_ARG_NIL(untranslated, 1, string, "");
30
30
  return N_(untranslated);
31
31
}
32
32
 
33
33
const char *api_intl_Q_(const char *untranslated) {
34
 
  SCRIPT_ASSERT(NULL != untranslated, NULL);
 
34
  SCRIPT_CHECK_ARG_NIL(untranslated, 1, string, "");
35
35
  return Q_(untranslated);
36
36
}
37
37
 
38
38
const char *api_intl_PL_(const char *singular, const char *plural, int n) {
39
 
  SCRIPT_ASSERT(NULL != singular, NULL);
40
 
  SCRIPT_ASSERT(NULL != plural, NULL);
 
39
  SCRIPT_CHECK_ARG_NIL(singular, 1, string, "");
 
40
  SCRIPT_CHECK_ARG_NIL(plural, 2, string, "");
41
41
  return PL_(singular, plural, n);
42
42
}
43
43