1309 Commits

Author SHA1 Message Date
Ad Schellevis
65771aaa8e typo in comment 2015-05-12 10:11:37 +00:00
Ad Schellevis
0cfe4bc4de add translator helper for mvc model files 2015-05-12 10:05:46 +00:00
Ad Schellevis
9e08bbcf60 (proxy) remove some quotes from validation messages 2015-05-12 11:59:55 +02:00
Ad Schellevis
1525bea954 use webgrind as package 2015-05-12 09:35:52 +00:00
Franco Fichtner
5c29e4b0e2 scripts: sweep here too 2015-05-12 10:44:03 +02:00
Franco Fichtner
c9933aa023 src: style sweep 2015-05-12 10:33:54 +02:00
Franco Fichtner
4d3b2ad7b6 scripts: use env(1) to work on OSX too 2015-05-12 09:30:58 +02:00
Ad Schellevis
821cca4be8 (language) add plugable script base to collect gettext tags and implement into Makefile 2015-05-11 20:09:13 +00:00
Franco Fichtner
8df4460b28 www: properly set language for login page 2015-05-11 21:45:12 +02:00
Franco Fichtner
21cbb2b0ff Merge pull request #177 from dotike/master
More lines from Chie Taguchi, being careful not to put in any which h…
2015-05-11 21:44:58 +02:00
Isaac (.ike) Levy
cf403ccf99 More lines from Chie Taguchi, being careful not to put in any which have any ambiguity.
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 14:51:00 -04:00
Franco Fichtner
a2923aec8a Merge pull request #176 from dotike/master
はじじぇまして OPNsense!
2015-05-11 20:10:30 +02:00
Isaac (.ike) Levy
f63e5fd737 はじじぇまして OPNsense!
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 13:19:42 -04:00
Franco Fichtner
af6907d129 system: bump path to Japanese 2015-05-11 17:22:35 +02:00
Franco Fichtner
8d69359455 make: due to recent renames, just expand to whatever we have 2015-05-11 17:15:51 +02:00
Franco Fichtner
4f6a767099 Merge pull request #175 from dotike/master
This may need to become "ja_JP.UTF-8" down the road
2015-05-11 17:09:46 +02:00
Isaac (.ike) Levy
3e5a6ca4a1 This may need to become "ja_JP.UTF-8" down the road
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 10:02:24 -04:00
Franco Fichtner
f7623822d0 src: whitespace sweep 2015-05-11 15:14:33 +02:00
Franco Fichtner
e848cca5a3 system/settings: remove language selection for now 2015-05-11 15:13:21 +02:00
Franco Fichtner
12706239a6 chinese: spacing is important
also: gettext() works on the packages now...  :)
2015-05-11 14:15:22 +02:00
Franco Fichtner
c01a08e8fe make: not needed anymore 2015-05-11 13:52:13 +02:00
Franco Fichtner
d17d7a9396 locale: bootstrap the simplified chinese translation
Submitted by: Liu <liuyonghui_AT_grapecity.com>
2015-05-11 13:52:00 +02:00
Franco Fichtner
127614c538 make: do not install human-readable translation files 2015-05-11 11:53:11 +02:00
Franco Fichtner
c9132fe555 system: add first bits of Japanese translation 2015-05-11 11:47:09 +02:00
Franco Fichtner
d921f8288c make: `bootstrap' glue for translations 2015-05-11 11:47:09 +02:00
Ad Schellevis
ee430b5a15 (mvc) fix empty select boxes on form (forgot to send empty items) 2015-05-11 11:27:15 +02:00
Franco Fichtner
34c4099e8b locale: need to change destination now 2015-05-11 10:40:09 +02:00
Franco Fichtner
18f622a8c2 locale: more shuffling for sanity's sake 2015-05-11 10:37:54 +02:00
Ad Schellevis
be3126a46d (mvc) fix Api routing 2015-05-11 10:21:53 +02:00
Franco Fichtner
3965b5f583 Merge pull request #174 from dotike/master
jp .pot file kickoff
2015-05-11 09:55:43 +02:00
Isaac (.ike) Levy
73b933ae9e Added a few of Chie-san's translations to get the ball rolling...
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 03:45:47 -04:00
Isaac (.ike) Levy
77798c9f89 Example localized changes for the header file.
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 03:42:15 -04:00
Isaac (.ike) Levy
5a38b9fdce Finally adding JA/JP, さあ!
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 03:38:52 -04:00
Franco Fichtner
4588c63f44 locale: --strict is easier to diff/read 2015-05-11 09:28:52 +02:00
Franco Fichtner
298f033c9b locale: push the rest of the translation
Oops, where did all of this come from?  ;)
2015-05-11 09:14:45 +02:00
Franco Fichtner
b7a10b0e3d locale: partially refresh the English translation 2015-05-11 09:11:02 +02:00
Franco Fichtner
ec9fdf7862 rc: gettext() foo 2015-05-11 09:07:27 +02:00
Franco Fichtner
c8d185a443 inc: minimise line movement on previous 2015-05-11 08:58:43 +02:00
Franco Fichtner
0b3c3aacb9 inc: gettext() as usual 2015-05-11 08:57:20 +02:00
Franco Fichtner
b9fab880db inc: missing one 2015-05-11 08:53:53 +02:00
Franco Fichtner
aac05b7e99 inc: gettext() woes 2015-05-11 08:52:04 +02:00
Franco Fichtner
d941a2eba9 inc: more gettext() weirdness 2015-05-11 08:41:24 +02:00
Franco Fichtner
321d458ea0 inc: gettext() hiccup found via xgettext 2015-05-11 08:33:51 +02:00
Franco Fichtner
77c4d92937 make: wipe file before regeneration 2015-05-11 08:20:50 +02:00
Franco Fichtner
a879f1dc8e Merge pull request #171 from dotike/locale.EN.canonical-Xcatch-upstream
Locale.en.canonical xcatch upstream
2015-05-11 08:14:51 +02:00
Isaac (.ike) Levy
41ba7900f5 -j "join messages with existing file"
I believe this is what we want long term, to ensure translation messages don't pile up, and that they retain multiple comment lines for source references, etc... Please tell me if I'm wrong, I'm not 100% on how it's behaviour works.

Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 02:01:08 -04:00
Isaac (.ike) Levy
5a4ceb31cf xgettext(1) generated, closer to Franco's spec
# for i in `git grep --name-only gettext | grep -v pot$` ; do
  #   xgettext -j -F -L PHP --from-code=UTF-8 \
  #     -o ./src/share/locale/en/LC_MESSAGES/OPNsense.pot "${i}"
  # done

For accuracy and simplicicity, the canonical english .pot file should be tracking source changes in this fashion.

Also, generating the base .pot file in this manner has an advantage for developers- if you make proper gettext calls in the code, you simply re-generate the .pot file, (instead of finding and inserting your changes by hand)...

One problem with the line above: the '-L PHP' flag makes a *ton* of C related warnings go away, but not all files in core are actually PHP...  Once this raises itself as a problem, a script generating this .pot file can get more sophicstocated to accomodate.  For now however, most things look like PHP syntax.

Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 01:34:48 -04:00
Isaac (.ike) Levy
d606c30686 This can be generated via xgettext(1) regularly,
If this file is generated regularly, it becomes easier for translators to keep up with changes to the source code.  (Or, at least changes with accompanying gettext calls).

This was generated with:

  # for i in `git grep --name-only 'gettext' | grep -v 'pot$'` ; do
  #  xgettext -j -o ./src/share/locale/en/LC_MESSAGES/OPNsense.pot "${i}"
  # done

Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 00:27:18 -04:00
Isaac (.ike) Levy
72f23c783c completely tool-based approach with xgettext(1)
xgettext(1) is obviously much simpler than creating the canonical .pot file by hand.  (If only I'd have known better before I started this :)

This .pot file was generated from the source code via:

  # for i in `git grep --name-only 'gettext' | grep -v 'pot$'` ; do
  #   xgettext -j -o ./src/share/locale/en/LC_MESSAGES/OPNsense.pot "${i}"
  # done

For this commit, the old header was retained- it will be deleted in the next commit, for ease of scriptable maintinence of the canonical english .pot file.

Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 00:21:44 -04:00
Isaac (.ike) Levy
45d11da97c big deep breath,
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-11 00:19:45 -04:00