* config/lang2po.hb
+ more translation comments
+ added source comments for core-lang translation source.
(only the order of lang_id values is signficant, the
actual values aren't)
+ minor code reabability
* utils/hbmk2/hbmk2.hbp
+ enabled Galician translation
* config/lang.hb
* contrib/hbrun/doc/hbrun.fr_FR.md -> contrib/hbrun/doc/hbrun.fr.md
* utils/hbmk2/doc/hbmk2.fr_FR.md -> utils/hbmk2/doc/hbmk2.fr.md
* utils/hbmk2/po/hbmk2.fr_FR.po -> utils/hbmk2/po/hbmk2.fr.po
* utils/hbmk2/hbmk2.hbp
* fr_FR -> fr (to be in sync with lang modules and until there is
no demand for fr_CA)
* contrib/make.hb
* whitespace
- contrib/hbrun/doc/hbrun.md
- utils/hbmk2/doc/hbmk2.md
- deleted files uploaded accidentally
* config/lang.hb
! fixed last minute bug in adding extension to doc file
! fixed being wrongly based, now should be as passed option
relative to cwd (was self dir)
* config/lang.hb
+ now requires the target project to be passed on cmdline
+ now pulls configuration from .hbp files.
See .hbp changes in this very commit.
+ generalized the 'hbrun' special case in 'doc_make' mode
+ generalized doc output type (so can be other than .md now)
% doesn't require hbrun tool anymore
; it means the tool is now more or less generic and can
support else than hbmk2
* contrib/hbrun/hbrun.hbp
* utils/hbmk2/hbmk2.hbp
+ added configuration options for lang.hb
* utils/hbi18n/hbi18n.prg
+ steps to make it better translatable
* utils/hbmk2/hbmk2.prg
+ provisions to enable context in hb_i18n_*() API usage
* src/rtl/hbi18n2.prg
* __i18n_potArrayClean() will now call transformation callback
first again
* __i18n_potArrayClean() transformation callback returning non-string
will now be ignored instead of deleting the item
* utils/hbmk2/hbmk2.prg
* TOFIX added to a help text
* src/rtl/hbi18n2.prg
! __i18n_potArraySort() fixed to not RTE when no source is present
+ __i18n_potArraySort() tweaked to sort items w/o source info to always
come before ones with source info
+ __i18n_potArrayClean() wlll now call transformation callback before
deleting items
+ __i18n_potArrayClean() will now remove the item in question if the
callback returns any non-string value
+ __i18n_potArrayClean()'s second lKeepVoidTranslations = .F. option will
now also remove items where the translation is identical to the msg id
- utils/hbmk2/_po_pull.hb
- utils/hbmk2/_po_push.hb
- utils/hbmk2/_md_make.hb
+ utils/hbmk2/hblang.hb
* merged separate management scripts into one
+ sort pulled .po files before stripping/processing
! do not process .po files in place to avoid race conditions
between parallel script sessions
* minor tweaks
* README.md
! minor
* utils/hbmk2/_po_pull.hb
! fixed wrong EOL forming after prev
% consolidated newline transformation into new doctoring calling
+ fixing EOL+space into EOL in translated text
* include/harbour.hbx
* src/rtl/hbi18n2.prg
+ added __i18n_potArrayClean() function that can clean source comments,
empty translations and able to do transformations on translations via
use supplied callback.
* utils/hbmk2/_po_pull.hb
+ do cleansing on .po files pulled from Transifex:
% strip source comments
% strip empty translations
! strip right/left padding from translated strings
! convert multiple spaces to single one in translated strings
; This will help keeping the diffs nice and tight and the
.po files in repo minimal in size
- utils/hbmk2/po/!
- deleted another accindental file :( fixed auto-script to be
more selective.
* utils/hbmk2/hbmk2.prg
+ will now use UTF-8 when the stdout is redirected to file
(caveat: will also use UTF-8 when using Windows tools
like 'more' do not understand UTF-8)
+ will now use UTF-8 when using -viewhelp to open the help in viewer
* README.md
* minor clarification to formatting cmd templates
* .gitattributes
+ some lines for future testing
* include/harbour.hbx
* src/rtl/hbi18n2.prg
+ added __i18n_potArraySort( aTrans ) -> aTrans
to sort .pot files to a predictable order (of first
occurrence in file). It helps reducing unnecessarily
large and unusable diffs when updating .pots and their
related .po files
* utils/hbmk2/hbmk2.prg
* marked some string previously (and intentionally) marked
as non-translatable, as translatable. One exception less.
* utils/hbmk2/_po_push.hb
+ sort .pot before saving and pushing to localization service
* utils/hbmk2/hbmk2.prg
+ clarified 'target' in several help items
+ added 'to stdout' to clarifiy some help items
+ use 'platform/C compiler' except 'toolchain'
* .gitignore
* deleted .def file as they are now covered by bin/*/ and
otherwise .def files do exist in source repo
* contrib/rddads/doc/en/adsfuncs.txt
* doc/en/string.txt
* cleanups
* utils/hbmk2/hbmk2.prg
* cleaned function skeletons in help
* extras/hbdoc/hbdoc.prg
+ include unknown COMPLIANCE value as in is doc instead of an error msg
* src/compiler/compi18n.c
* uncrustified, tweak formatting manually
% optimized variable scopes
* src/rtl/hbi18n2.prg
* minor formatting
* utils/hbmk2/_md_make.hb
* utils/hbmk2/_po_pull.hb
* utils/hbmk2/_po_push.hb
+ internals almost fully generalized
+ convert Transifex newline symbol to real newline
* utils/hbmk2/hbmk2.prg
+ AllTrim() some translated text to avoid bad Markdown result
when translated text contains left/right padding.
TODO: double spaces in translated text and extend above
to all strings, and move the whole post-processing/fixing
to the po pull stage. Would be nice to have a core i18n
function to be able to apply transformations via codeblock
to translated text.
* utils/hbmk2/_md_make.hb
* utils/hbmk2/_po_pull.hb
* utils/hbmk2/_po_push.hb
% much faster .md generation
+ internals modified to ease moving the scripts to other dir
+ better feedback
* utils/hbmk2/hbmk2.prg
* formatting and minor