Commit graph

12 commits

Author SHA1 Message Date
Jim Derry 7d2ddee775 Add new rebase command to CLI.
This is intended to make it very, very easy to update the POT and all of the POs when
changes are made to `language_en.h`. Used without an sha-1 hash, untranslated strings
(i.e., the "source" strings) are updated in the POT/PO's.

However if you specify an --sha=HASH (or -c HASH) option, then the script will use git
to examine the `language_en.h` file from that specified commit, determing the strings
that have changed, and mark all of these strings as `fuzzy` in the POs. This will serve
as a flag to translators that the original has changed. In addition, this `fuzzy` flag
will appear in the headers as "(fuzzy) " in the item comments.

If a translator edits the header directly, he should remove the "(fuzzy )" in the
comment. Then when the PO is rebuilt, the fuzzy flag will be removed automatically.
The reverse is also true; if a translator is working with the PO, he or she should
clear the fuzzy flag and the comment will be adjusted accordingly in the generated
header.
2016-03-25 09:21:21 +08:00
Jim Derry a353523873 Spaceing 2016-03-24 10:40:21 +08:00
Jim Derry d0ec84c169 Merge branch 'master' into lang_help_enhance 2016-03-24 10:37:37 +08:00
Jim Derry 9ecdf30774 Localization fixes:
- Correct format specifiers.
- Fix missing trailing quote if following escaped quote. #385
- Don't put developer comments into generated headers unless --force-comments is used.
- Ruby 1.9.3 fix.
- Initial fuzzy support.
- Fix two character lang codes not working.
2016-03-24 10:31:56 +08:00
Jim Derry ee151f07f1 Ruby 1.9.3 fix. 2016-03-23 13:27:17 +08:00
Jim Derry 39e4f16b48 Don't put developer comments into generated headers unless --force-comments is used. 2016-03-22 11:26:32 +08:00
Jim Derry 3cd1a87c44 Fix missing trailing quote if following escaped quote. #385 2016-03-22 11:01:41 +08:00
Jim Derry 91e8e6bf1e Correct format specifiers. 2016-03-22 10:35:03 +08:00
Jim Derry 9ae15f45a7 Consistent tabs
Fixed tabs in template file, and regen'd all related files.
2016-01-30 15:51:54 +08:00
Jim Derry 53f2a2da2a msgunfmt works properly with escaped hex. 2016-01-30 15:51:53 +08:00
Martin von Gagern 17e50f2642 Encode UTF-8 strings to hex escapes in header files 2016-01-30 15:51:53 +08:00
Jim Derry d505869910 Localization Support added to HTML Tidy
- Languages can now be added to Tidy using standard toolchains.
- Tidy's help output is improved with new options and some reorganization.
2016-01-30 15:51:53 +08:00