Commit Graph

158 Commits

Author SHA1 Message Date
Viktor Szakats
02ebccfcdd 2013-04-01 03:33 UTC+0200 Viktor Szakats (harbour syenar.net)
* 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
2013-04-01 04:09:18 +02:00
Viktor Szakats
cdc25aa128 2013-04-01 01:35 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/rtl/hbi18n2.prg
    * consider the complete original string when sorting (was first 30 chars)

  * utils/hbmk2/_po_pull.hb
    ! more automatic translation fixups:
      "( " -> "("
      " )" -> ")"
2013-04-01 01:37:20 +02:00
Viktor Szakats
f18ce81c0b 2013-04-01 01:28 UTC+0200 Viktor Szakats (harbour syenar.net)
* 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
2013-04-01 01:30:23 +02:00
Viktor Szakats
f7bd4b33e7 2013-04-01 01:14 UTC+0200 Viktor Szakats (harbour syenar.net)
* 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.
2013-04-01 01:18:50 +02:00
Viktor Szakats
3b20d12114 2013-04-01 00:17 UTC+0200 Viktor Szakats (harbour syenar.net)
* 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
2013-04-01 00:20:58 +02:00
Viktor Szakats
4f1db3a0b0 2013-03-31 22:52 UTC+0200 Viktor Szakats (harbour syenar.net)
* 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
2013-03-31 22:55:32 +02:00
Viktor Szakats
ea544841f0 better rules to exclude lib subdir 2013-03-31 22:02:01 +02:00
Viktor Szakats
b550ee9c1a 2013-03-31 21:52 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
    + clarified 'target' in several help items
    + added 'to stdout' to clarifiy some help items
    + use 'platform/C compiler' except 'toolchain'
2013-03-31 21:53:44 +02:00
Viktor Szakats
251f4179ba minor cleanup 2013-03-31 21:38:23 +02:00
Viktor Szakats
35300e401d minor doc/comment/test cleanups 2013-03-31 21:35:57 +02:00
Viktor Szakats
aaa6a84532 2013-03-31 21:22 UTC+0200 Viktor Szakats (harbour syenar.net)
* .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
2013-03-31 21:25:16 +02:00
Viktor Szakats
fce9739764 2013-03-31 20:13 UTC+0200 Viktor Szakats (harbour syenar.net)
- utils/hbmk2/po/hbmk2.hu!.po
    - deleted accidentally added file

  * utils/hbmk2/_md_make.hb
  * utils/hbmk2/_po_pull.hb
    * minor tweaks

  * utils/hbmk2/po/hbmk2.hu.po
    + added two translations for testing automatic .po translation upload
2013-03-31 20:15:20 +02:00
Viktor Szakats
3e3a5a7ff7 generalizing further 2013-03-31 16:34:28 +02:00
Viktor Szakats
ab064dee76 2013-03-31 15:15 UTC+0200 Viktor Szakats (harbour syenar.net)
* 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.
2013-03-31 15:20:37 +02:00
Viktor Szakats
60a1267095 2013-03-31 04:46 UTC+0200 Viktor Szakats (harbour syenar.net)
* 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
2013-03-31 05:17:46 +02:00
Viktor Szakats
bc24dba6be <lev> -> <level> in help for better clarity 2013-03-30 16:44:09 +01:00
Viktor Szakats
3ac2e51a90 two missing hb_ prefixes in help 2013-03-30 14:56:15 +01:00
Viktor Szakats
195247b4f4 fixed two base strings to not require translators to preserve whitespace padding 2013-03-30 12:09:34 +01:00
Viktor Szakats
0549b31140 2013-03-30 12:06 UTC+0100 Viktor Szakats (harbour syenar.net)
* .gitattributes
    + added .yml
  * utils/hbmk2/_md_make.hb
    ! fixed to include base language
  * utils/hbmk2/_po_push.hb
    ! fixed one cwd dependence
  * utils/hbmk2/hbmk2.hbp
    * fmt
2013-03-30 12:07:27 +01:00
Viktor Szakats
a2471a92c0 messing around with EOL types 2013-03-30 04:24:56 +01:00
Viktor Szakats
dea79cf720 2013-03-30 04:20 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/_po_push.hb
    + will now refresh source language .po (.pot) from source code
    + will now save source .po locally
2013-03-30 04:21:23 +01:00
Viktor Szakats
316d6ab161 2013-03-30 03:52 UTC+0100 Viktor Szakats (harbour syenar.net)
+ utils/hbmk2/_po_push.hb
    + added script to upload English source .po file

  * utils/hbmk2/_po_pull.hb
    * minors

  * utils/hbmk2/_po_dl.hb -> utils/hbmk2/_po_pull.hb
  * utils/hbmk2/_md_gen.hb -> utils/hbmk2/_md_make.hb
    * renamed (slipped in a prev commit by mistake)
2013-03-30 03:54:55 +01:00
Viktor Szakats
a827aba539 terminology (translation -> localization) 2013-03-30 02:48:23 +01:00
Viktor Szakats
21ba973f78 2013-03-30 02:03 UTC+0100 Viktor Szakats (harbour syenar.net)
* README.md
    * moved Travis build status to top
    + linked to two users' list posts on unstable builds
    % deleted old envvars recommended for deletion (they don't
      appear anymore in user reports)

  * utils/hbmk2/_po_dl.hb
    + allow login information to be supplied via envvar
    ! minor cleanup
2013-03-30 02:06:08 +01:00
Viktor Szakats
776d26eb9e fixed another cwd dependence 2013-03-30 01:06:30 +01:00
Viktor Szakats
67e5c6825e made them work regardless of cwd (some changes slipped into prev automatic commit, sorry) 2013-03-30 01:01:18 +01:00
Viktor Szakats
231573bcfb added status chart and link about ui translation to README 2013-03-30 00:44:06 +01:00
Viktor Szakats
e4a149175a translations updated, manuals regenerated (semi-automatic) 2013-03-30 00:33:07 +01:00
Viktor Szakats
3851b7d40b 2013-03-29 23:25 UTC+0100 Viktor Szakats (harbour syenar.net)
* src/rtl/cdpdet.prg
  * src/rtl/langcomp.prg
  * utils/hbmk2/_md_gen.hb
    + added support for Spanish (Latin American) (es_419) dialect

  * utils/hbmk2/hbmk2.hbp
    + added es_419, synced with Transifex language codes

  + utils/hbmk2/_po_dl.hb
    + added automatic script that refreshes repo translations
      with Transifex translation data

  * utils/hbmk2/po/hbmk2.el.po
  * utils/hbmk2/po/hbmk2.hu.po
  * utils/hbmk2/po/hbmk2.it.po
  + utils/hbmk2/po/hbmk2.es_419.po
  + utils/hbmk2/po/hbmk2.fr_FR.po
  * utils/hbmk2/po/hbmk2.es.po -> utils/hbmk2/po/hbmk2.es_ES.po
    * synced language codes
    + updated from Transifex using new script _po_dl.hb

  * contrib/hbrun/doc/hbrun.hu.md
  * contrib/hbrun/doc/hbrun.it.md
  + contrib/hbrun/doc/hbrun.es_419.md
  * contrib/hbrun/doc/hbrun.fr.md -> contrib/hbrun/doc/hbrun.fr_FR.md
  * contrib/hbrun/doc/hbrun.es.md -> contrib/hbrun/doc/hbrun.es_ES.md
    * synced language codes
    + regerenated using _md_gen.hb

  * utils/hbmk2/doc/hbmk2.el.md
  * utils/hbmk2/doc/hbmk2.hu.md
  * utils/hbmk2/doc/hbmk2.it.md
  + utils/hbmk2/doc/hbmk2.es_419.md
  * utils/hbmk2/doc/hbmk2.fr.md -> utils/hbmk2/doc/hbmk2.fr_FR.md
  * utils/hbmk2/doc/hbmk2.es.md -> utils/hbmk2/doc/hbmk2.es_ES.md
    * synced language codes
    + regerenated using _md_gen.hb
2013-03-29 23:28:16 +01:00
Viktor Szakats
7401e61b59 2013-03-29 21:36 UTC+0100 Viktor Szakats (harbour syenar.net)
+ utils/hbmk2/_md_gen.hb
    + added script to generate .md helps

  + contrib/hbrun/doc/_GENERATED_
  + contrib/hbrun/doc/hbrun.el.md
  + contrib/hbrun/doc/hbrun.es.md
  + contrib/hbrun/doc/hbrun.fr.md
  + contrib/hbrun/doc/hbrun.hu.md
  + contrib/hbrun/doc/hbrun.it.md
  + contrib/hbrun/doc/hbrun.pt_BR.md
  + utils/hbmk2/doc/_GENERATED_
  + utils/hbmk2/doc/hbmk2.el.md
  + utils/hbmk2/doc/hbmk2.es.md
  + utils/hbmk2/doc/hbmk2.fr.md
  + utils/hbmk2/doc/hbmk2.hu.md
  + utils/hbmk2/doc/hbmk2.it.md
  + utils/hbmk2/doc/hbmk2.pt_BR.md
  * contrib/hbrun/hbrun.md -> contrib/hbrun/doc/hbrun.en.md
  * utils/hbmk2/hbmk2.md -> utils/hbmk2/doc/hbmk2.en.md
    + added hbmk2 and hbrun helps in all available languages
    + added French files (by Alain Aupeix)

  * README.md
    * updated hbmk2 and hbrun online doc links
2013-03-29 21:36:55 +01:00
Viktor Szakats
e485eed41a be more predictable when falling back to other dialects found on disk 2013-03-29 20:07:46 +01:00
Viktor Szakats
1b6b2ba911 2013-03-29 19:31 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
    + better match algrorithm for finding .hbl translation modules
      f.e. "es_AR" will fall back to "es", than fall back to
      whichever dialect is present. "es" will also be matched
      to "es_*" when "es" not present.
    ! now able to load languages Harbour doesn't even know about

  * utils/hbmk2/hbmk2.hbp
  * utils/hbmk2/po/hbmk2.el_GR.po -> utils/hbmk2/po/hbmk2.el.po
  * utils/hbmk2/po/hbmk2.es_PE.po -> utils/hbmk2/po/hbmk2.es.po
  * utils/hbmk2/po/hbmk2.hu_HU.po -> utils/hbmk2/po/hbmk2.hu.po
  * utils/hbmk2/po/hbmk2.it_IT.po -> utils/hbmk2/po/hbmk2.it.po
    % renamed to use short language code for languages
      that are unlikely to have multiple dialects implemented.
      We can branch out new dialects anytime as needed.
      (I'm still pending on Spanish. Please answer on the
      forum whether to have separate es_PE, es_AR and else.)
2013-03-29 19:32:41 +01:00
Viktor Szakats
69b251df6d tuning language IDs 2013-03-29 18:18:06 +01:00
Viktor Szakats
c21235193e updated translation (by Pete_wg and SAMI LAHAM) 2013-03-29 16:34:16 +01:00
Viktor Szakats
ce8414897f 2013-03-29 16:22 UTC+0100 Viktor Szakats (harbour syenar.net)
* src/rtl/langcomp.prg
    ! fixed hb_langSelect() to accept ISO language codes
      using '_' as separator

  * utils/hbmk2/po/hbmk2.el_GR.po
    * updated
2013-03-29 16:23:39 +01:00
Viktor Szakats
7c6cb8b4c6 fixed to use HB_BOOL instead of BOOL, formatting (.t. -> .T.) 2013-03-29 14:39:09 +01:00
Viktor Szakats
8ad4aec977 moved translation files under subdir 2013-03-29 14:20:58 +01:00
Viktor Szakats
802085e5f5 added translation homepage to Harbour Links 2013-03-29 12:51:18 +01:00
Viktor Szakats
dc809a0b49 fixed encoding messed up by a Far Manager plugin which gets it wrong while trimming line ending whitespace 2013-03-29 12:45:55 +01:00
Viktor Szakats
7b67949355 Merge branch 'master' of https://github.com/harbour/core
Conflicts:
	ChangeLog.txt
2013-03-29 12:40:59 +01:00
Viktor Szakats
a105cd68dd 2013-03-29 12:34 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.hbp
  * utils/hbmk2/hbmk2.es_PE.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.pt_BR.po
  + utils/hbmk2/hbmk2.el_GR.po
  + utils/hbmk2/hbmk2.it_IT.po
    * updated translations from
         https://www.transifex.com/projects/p/harbour/resource/hbmk2/
    + added two new languages from above team translation project
2013-03-29 12:39:50 +01:00
Pritpal Bedi
6081dbb7a0 Deleted: $id:$ headers which were restored in prev commit by mistake. 2013-03-28 15:22:25 -07:00
Pritpal Bedi
5cea229ecb GTWVG + Wvt_DrawImage( ,,,,,, lDoNotScale ) 2013-03-28 12:13:49 -07:00
Viktor Szakats
174db6407a added language header tag 2013-03-28 18:06:10 +01:00
Viktor Szakats
e211f455f5 added two .po links 2013-03-28 18:00:15 +01:00
Viktor Szakats
5550d76d7e 2013-03-28 17:47 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
    ! fixed to detect and find contrib/addons root in
      non-system location on *nix systems

  * ChangeLog.txt
    * update to 2013-03-27 16:29 UTC+0100
2013-03-28 17:52:06 +01:00
Viktor Szakats
63f6af816a added base language .po file 2013-03-28 17:34:50 +01:00
Viktor Szakats
0a066e1016 added last copyright holder to as 'Last-Translator' 2013-03-28 16:19:12 +01:00
Viktor Szakats
02bf5463a4 one more cleanup 2013-03-28 16:17:50 +01:00
Viktor Szakats
65569184aa 2013-03-28 16:09 UTC+0100 Viktor Szakats (harbour syenar.net)
* src/lang/l_he.c
  * src/lang/l_hr.c
  * src/lang/l_is.c
  * src/lang/l_pt.c
  * src/lang/l_sk.c
  * src/lang/l_zh_sim.c
  * src/lang/l_zh_tra.c
    * further cleanup

  + src/lang/*.po
    + added .po files converted from language modules using
      tests/lang2po.hb script
2013-03-28 16:10:26 +01:00