is handy to see at a glance what strings (if any) in a given file are to the correct source locations (they'd be prefixed with because otherwise the comments in the po/git.pot file wouldn't refer corresponding to our source tree, and have "xgettext" consider We didn't need to do this for the *.perl and *.sh files, so let's generate "po/git.pot, and then finally "reset -hard" to undo our checkout, then munge all of the processed files in-place with "sed", itself understands PRIuMAX we'd first check if we had a clean because we need to understand PRItime in the same way that gettext Before fc0fd5b23bc we'd consider source files as-is with gettext, but That out of the way, the main logic change here is getting rid of the But this case no longer applies, so FORCE is no we're given, so if we miss a bar.h included via foo.h $(LOCALIZED_C) from one header file to another, we only consider the specific targets Unlike the compiler, when we generate the "pot "file we won't recurse d85b0dff729 (Makefile: use `find` to determine static header It was also made as a preparatory change for to do with how we do C compilation or find headers, which it suggest though, it's needed for the reasons noted above, but it's got nothing I think 1f31963e921 was confused in the rationale for adding "FORCE" copy ".build/pot/git.pot" to "po/git.pot", and the former doesn't need So we still need a FORCE on po/git.pot, but now we'll have that target Makefile's dependency resolution inherently can't handle incrementalīuilding when the target file may be updated by git (or something else Target, ) when it was made to depend on "FORCE". Makefile: "pot" target to extract messages marked for Commit message When the "pot" target was originally added in cd5513a7168 (i18n: + runs, and will allow us to implement related targets in subsequent + because we run "xgettext" many times (once per source file), but it + This speed of "make pot" is slower than before on an initial run, + files in place and doing a "reset -hard" afterwards. + files in ".build/pot/po", we can avoid running "make pot" by altering + and rewriting certain source files with PRItime macros to temporary + By generating "pot" snippets in ".build/pot/po" for each source file + "sed", generate "po/git.pot", and then finally "reset -hard" to undo + clean checkout, then munge all of the processed files in-place with + that gettext itself understands PRIuMAX we'd first check if we had a + with gettext, but because we need to understand PRItime in the same way + custom PRItime format, ) we'd consider source files as-is + Before commit fc0fd5b23b (Makefile: help gettext tools to cope with our it *much* faster for incremental runs, and will allow us to implement This both speeds up the "make pot" target on an initial run, and makes ".build/pot/" directory, instead of altering them in place and doing a Change "make pot" to work on copies of the working tree files in a new Makefile: have "make pot" not "reset -hard" : - > 2: 1f6ef16028 Makefile: generate "po/git.pot" from stable LOCALIZED_CĢ: 6cf9c1f702 ! 3: a991919bfb Makefile: have "make pot" not "reset Metadata # range-diff avar/Makefile-incremental-po-git-pot-rule.HEADġ: 6f3483eb63 1: 88470f57b8 Makefile: sort "po/git.pot" by file location See patch range-diff between your worktree and this. * L10n contributors can start translations at any time, even before the * L10n contributors for new language can initialize "po/XX.pot" using: * L10n contributors can update theire "po/XX.pot" using: Source files in-place, do not need a clean checkout, and do not need * Generate "po/git.pot" in an incremental way, so we do not need to munge Generated by different user may have different number of entries. * Variable "LOCALIZED_C" is not stable, that cause the "po/git.pot" file Several improvements to the l10n workflow: Ævar and I started discussing this topic (incremental po/git.pot updateĪnd new l10n workflow) on a GitHub issue a month ago. Jimmy Angelakos, Christopher Díaz, Jean-Noël Avila,īagas Sanjaya, Alessandro Menti, Gwan-gyeong Mun, Arusekk,ĭaniel Santos, Dimitriy Ryazantcev, Peter Krefting, Emir SARI, To: Ævar Arnfjörð Bjarmason, Junio C Hamano, Git ListĬc: Jiang Xin, Alexander Shopov, Jordi Mas, Matthias Rüster, ` (21 more replies) 0 siblings, 22 replies 110+ messages in thread 13:23 ` Makefile: sort "po/git.pot" by file location Jiang Xin Incremental po/git.pot update and new l10n workflow archive mirror help / color / mirror / Atom feed * Incremental po/git.pot update and new l10n workflow 13:23 Jiang Xin
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |