13552 Commits

Author SHA1 Message Date
Franco Fichtner
6df92364ef menu: upper case letter for proxy 2015-05-13 08:23:13 +02:00
Isaac (.ike) Levy
94f11fcb3e more lines from Chie-san
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
2015-05-12 23:58:35 -04:00
Ad Schellevis
40481911ad small typo in ipfw template 2015-05-12 21:52:46 +02:00
Ad Schellevis
25ad6c549a replace captive portal ipfw ruleset loading with configd template engine 2015-05-12 21:43:51 +02:00
Ad Schellevis
9261e58050 change ipfw target filename to current 2015-05-12 21:28:15 +02:00
Ad Schellevis
66f30c7f5d update ipfw template with current captive portal setup 2015-05-12 21:23:14 +02:00
Ad Schellevis
4d5ad2769e add jinja2.ext.do extension to Jinja environment 2015-05-12 20:24:12 +02:00
Ad Schellevis
0c398e103a oops, wrong move.. 2015-05-12 14:51:11 +00:00
Ad Schellevis
d04db9bee4 (mvc) add uuid on recurring items 2015-05-12 16:28:02 +02:00
Ad Schellevis
e9d3cd9fb0 (mvc) fix sample code 2015-05-12 16:26:57 +02:00
Ad Schellevis
ef1e25452f bootup error on move pkg when using memdisk, shouldn't try to move... 2015-05-12 14:22:42 +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
c9933aa023 src: style sweep 2015-05-12 10:33:54 +02:00
Franco Fichtner
8df4460b28 www: properly set language for login page 2015-05-11 21:45:12 +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
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
d17d7a9396 locale: bootstrap the simplified chinese translation
Submitted by: Liu <liuyonghui_AT_grapecity.com>
2015-05-11 13:52:00 +02:00
Franco Fichtner
c9132fe555 system: add first bits of Japanese translation 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
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
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
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
Ad Schellevis
d849e48e1d (mvc) still some work todo on getTranslator, disable for now§§ 2015-05-10 17:43:56 +00:00
Ad Schellevis
2723668ea3 (mvc) some gettext stuff 2015-05-10 19:33:02 +02:00
Ad Schellevis
f730946c03 (proxy) improve gui code by using the xml template for form handling 2015-05-10 18:54:38 +02:00
Ad Schellevis
623a72fceb (mvc) add xml form handling to base controller
Adds controller functionality to read form definitions from an xml file in [Controller]/forms/ directory to keep Volt template code a bit cleaner an more understandable.
2015-05-10 18:50:38 +02:00
Ad Schellevis
4a7bf0b7c6 (legacy config helpers) fix config section restore for opnsense config's 2015-05-10 12:14:19 +00:00