Changeset e71d1d38


Ignore:
Timestamp:
Feb 23, 2018 4:35:16 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4321f13
Parents:
6fe25cd
Message:

Getopt: Add new translations
Add instructions in .tx/config for conversion
Fix checkutf8.sh for getopt translations

Files:
6 added
6 edited

Legend:

Unmodified
Added
Removed
  • .tx/config

    r6fe25cd re71d1d38  
    349349
    350350[I2P.getopt]
     351;;
     352;; Java properties files (when not read with our DataHelper methods) must be ISO-8859-1 encoded.
     353;; See https://docs.oracle.com/javase/6/docs/api/java/util/Properties.html
     354;; Several getopt translations from Transifex are ISO-8859-1 encoded.
     355;; So that all our source files are consistently UTF-8 encoded,
     356;; you may optionally convert them to ASCII with Unicode escapes after downloading.
     357;; Convert files with:
     358;;   native2ascii -encoding iso-8859-1 foo.properties foo.properties.new
     359;; Then review that it looks right:
     360;;   native2ascii -reverse -encoding UTF-8 foo.properties.new
     361;; Then copy it over:
     362;;   mv foo.properties.new foo.properties
     363;; The following files from Transifex are known to be ISO-8859-1 encoded,
     364;; and should be escaped using native2ascii after downloading:
     365;;   gl, pt, pt_BR, sq, sv, tr
     366;;
    351367source_file = core/java/src/gnu/getopt/MessagesBundle.properties
    352368source_lang = en
     
    357373trans.fi = core/java/src/gnu/getopt/MessagesBundle_fi.properties
    358374trans.fr = core/java/src/gnu/getopt/MessagesBundle_fr.properties
    359 ;; currently corrupt, non-UTF-8
    360 ;;trans.gl = core/java/src/gnu/getopt/MessagesBundle_gl.properties
     375trans.gl = core/java/src/gnu/getopt/MessagesBundle_gl.properties
    361376trans.hu = core/java/src/gnu/getopt/MessagesBundle_hu.properties
    362377;; Java converts id to in
     
    365380trans.ja = core/java/src/gnu/getopt/MessagesBundle_ja.properties
    366381trans.ko = core/java/src/gnu/getopt/MessagesBundle_ko.properties
     382trans.nb = core/java/src/gnu/getopt/MessagesBundle_nb.properties
    367383trans.nl = core/java/src/gnu/getopt/MessagesBundle_nl.properties
    368 trans.nb = core/java/src/gnu/getopt/MessagesBundle_nb.properties
    369384trans.pl = core/java/src/gnu/getopt/MessagesBundle_pl.properties
    370 ;; currently corrupt, non-UTF-8
    371 ;;trans.pt = core/java/src/gnu/getopt/MessagesBundle_pt.properties
    372 ;; currently corrupt, non-UTF-8
    373 ;;trans.pt_BR = core/java/src/gnu/getopt/MessagesBundle_pt_BR.properties
     385trans.pt = core/java/src/gnu/getopt/MessagesBundle_pt.properties
     386trans.pt_BR = core/java/src/gnu/getopt/MessagesBundle_pt_BR.properties
    374387trans.ro = core/java/src/gnu/getopt/MessagesBundle_ro.properties
    375388trans.ru_RU = core/java/src/gnu/getopt/MessagesBundle_ru.properties
    376389trans.sk = core/java/src/gnu/getopt/MessagesBundle_sk.properties
    377 ;; currently corrupt, non-UTF-8
    378 ;;trans.sq = core/java/src/gnu/getopt/MessagesBundle_sq.properties
    379 ;; currently corrupt, non-UTF-8
    380 ;;trans.tr_TR = core/java/src/gnu/getopt/MessagesBundle_tr.properties
     390trans.sq = core/java/src/gnu/getopt/MessagesBundle_sq.properties
     391trans.sr = core/java/src/gnu/getopt/MessagesBundle_sr.properties
     392trans.sv_SE = core/java/src/gnu/getopt/MessagesBundle_sv.properties
     393trans.tr_TR = core/java/src/gnu/getopt/MessagesBundle_tr.properties
    381394trans.uk_UA = core/java/src/gnu/getopt/MessagesBundle_uk.properties
    382395trans.zh_CN = core/java/src/gnu/getopt/MessagesBundle_zh.properties
     396trans.zh_TW = core/java/src/gnu/getopt/MessagesBundle_zh_TW.properties
    383397
    384398[I2P.streaming]
  • core/java/src/gnu/getopt/MessagesBundle_nl.properties

    r6fe25cd re71d1d38  
    2020#* Boston, MA  02111-1307 USA
    2121#**************************************************************************/
    22 getopt.ambigious={0}\: optie ''{1}'' is ambigu
    23 getopt.arguments1={0}\: optie ''--{1}'' staat geen argumenten toe
    24 getopt.arguments2={0}\: optie ''{1}{2}'' staat geen argumenten toe
    25 getopt.requires={0}\: optie ''{1}'' heeft een argument nodig
    26 getopt.unrecognized={0}\: onbekende optie ''--{1}''
    27 getopt.unrecognized2={0}\: onbekende optie ''{1}{2}''
    28 getopt.illegal={0}\: niet toegestane optie -- {1}
    29 getopt.invalid={0}\: onjuiste optie -- {1}
    30 getopt.requires2={0}\: optie heeft een argument nodig -- {1}
     22getopt.ambigious={0}: optie ''{1}'' is ambigu
     23getopt.arguments1={0}: optie ''--{1}'' staat geen argumenten toe
     24getopt.arguments2={0}: optie ''{1}{2}'' staat geen argumenten toe
     25getopt.requires={0}: optie ''{1}'' heeft een argument nodig
     26getopt.unrecognized={0}: onbekende optie ''--{1}''
     27getopt.unrecognized2={0}: onbekende optie ''{1}{2}''
     28getopt.illegal={0}: niet-toegestane optie -- {1}
     29getopt.invalid={0}: onjuiste optie -- {1}
     30getopt.requires2={0}: optie heeft een argument nodig -- {1}
    3131getopt.invalidValue=Ongeldige waarde {0} voor parameter 'has_arg'
  • core/java/src/gnu/getopt/MessagesBundle_pt_BR.properties

    r6fe25cd re71d1d38  
    1 getopt.ambigious={0}\: op\u00E7\u00E3o ''{1}'' \u00E9 amb\u00EDgua
    2 getopt.arguments1={0}\: op\u00E7\u00E3o ''--{1}'' n\u00E3o permite um argumento
    3 getopt.arguments2={0}\: op\u00E7\u00E3o ''{1}{2}'' n\u00E3o permite um argumento
    4 getopt.requires={0}\: op\u00E7\u00E3o ''{1}'' requer um argumento
    5 getopt.unrecognized={0}\: op\u00E7\u00E3o n\u00E3o reconhecida ''--{1}''
    6 getopt.unrecognized2={0}\: op\u00E7\u00E3o n\u00E3o reconhecida ''{1}{2}''
    7 getopt.illegal={0}\: op\u00E7\u00E3o ilegal -- {1}
    8 getopt.invalid={0}\: op\u00E7\u00E3o inv\u00E1lida -- {1}
    9 getopt.requires2={0}\: op\u00E7\u00E3o requer um argumento -- {1}
    10 getopt.invalidValue=valor inv\u00E1lido {0} para o par\u00E2metro 'has_arg'
     1#**************************************************************************
     2#* MessagesBundle.properties -- English language error messages
     3#*
     4#* Copyright (c) 1998 by William King (wrking@eng.sun.com) and
     5#*                       Aaron M. Renn (arenn@urbanophile.com)
     6#*
     7#* This program is free software; you can redistribute it and/or modify
     8#* it under the terms of the GNU Library General Public License as published
     9#* by  the Free Software Foundation; either version 2 of the License or
     10#* (at your option) any later version.
     11#*
     12#* This program is distributed in the hope that it will be useful, but
     13#* WITHOUT ANY WARRANTY; without even the implied warranty of
     14#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15#* GNU Library General Public License for more details.
     16#*
     17#* You should have received a copy of the GNU Library General Public License
     18#* along with this program; see the file COPYING.LIB.  If not, write to
     19#* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
     20#* Boston, MA  02111-1307 USA
     21#**************************************************************************/
     22getopt.ambigious={0}: a op\u00e7\u00e3o ''{1}'' \u00e9 amb\u00edgua
     23getopt.arguments1={0}: a op\u00e7\u00e3o ''--{1}'' n\u00e3o permite um argumento
     24getopt.arguments2={0}: a op\u00e7\u00e3o ''{1}{2}'' n\u00e3o permite um argumento
     25getopt.requires={0}: a op\u00e7\u00e3o ''{1}'' requer um argumento
     26getopt.unrecognized={0}: op\u00e7\u00e3o n\u00e3o reconhecida ''--{1}''
     27getopt.unrecognized2={0}: op\u00e7\u00e3o n\u00e3o reconhecida ''{1}{2}''
     28getopt.illegal={0}: op\u00e7\u00e3o ilegal -- {1}
     29getopt.invalid={0}: op\u00e7\u00e3o inv\u00e1lida -- {1}
     30getopt.requires2={0}: a op\u00e7\u00e3o requer um argumento -- {1}
     31getopt.invalidValue=Valor inv\u00e1lido {0} para o par\u00e2metro 'has_arg'
  • core/java/src/gnu/getopt/MessagesBundle_zh_TW.properties

    r6fe25cd re71d1d38  
    11#**************************************************************************
    2 #* MessagesBundle.properties  - Triditional  Chinese language error messages
     2#* MessagesBundle.properties -- English language error messages
    33#*
    4 #* Copyright (c) 2012 by David Zhang (david290@qq.com)
     4#* Copyright (c) 1998 by William King (wrking@eng.sun.com) and
     5#*                       Aaron M. Renn (arenn@urbanophile.com)
    56#*
    67#* This program is free software; you can redistribute it and/or modify
     
    1920#* Boston, MA  02111-1307 USA
    2021#**************************************************************************/
    21 getopt.ambigious={0}: \u9078\u9805 ''{1}'' \u6709\u6B67\u7FA9
    22 getopt.arguments1={0}:\u9078\u9805''--{1}'' \u4E0D\u80FD\u5E36\u53C3\u6578
    23 getopt.arguments2={0}:\u9078\u9805''{1}{2}''\u4E0D\u80FD\u5E36\u53C3\u6578
    24 getopt.requires={0}: \u9078\u9805 ''{1}'' \u8981\u6C42\u5E36\u6709\u53C3\u6578
    25 getopt.unrecognized={0}: \u7121\u6CD5\u8B58\u5225\u7684\u9078\u9805 ''--{1}''
    26 getopt.unrecognized2={0}:\u7121\u6CD5\u8B58\u5225\u7684\u9078\u9805''{1}{2}''
    27 getopt.illegal={0}: \u975E\u6CD5\u9078\u9805 -- {1}
    28 getopt.invalid={0}: \u7121\u6548\u9078\u9805 -- {1}
    29 getopt.requires2={0}:\u9078\u9805\u9700\u8981\u6709\u53C3\u6578 -- {1}
    30 getopt.invalidValue=\u9078\u9805 'has_arg'\u7684\u503C {0} \u975E\u6CD5
     22getopt.ambigious={0}: \u9078\u9805 ''{1}'' \u4e0d\u660e
     23getopt.arguments1={0}: \u9078\u9805''--{1}'' \u53c3\u6578\u4e0d\u5408\u6cd5
     24getopt.arguments2={0}: \u9078\u9805''{1}{2}'' \u53c3\u6578\u4e0d\u5408\u6cd5
     25getopt.requires={0}: \u9078\u9805''{1}'' \u9700\u8981\u4e00\u500b\u53c3\u6578
     26getopt.unrecognized={0}: \u4e0d\u660e\u7684\u9078\u9805 ''--{1}''
     27getopt.unrecognized2={0}: \u4e0d\u660e\u7684\u9078\u9805  ''{1}{2}''
     28getopt.illegal={0}: \u975e\u6cd5\u9078\u9805-- {1}
     29getopt.invalid={0}: \u7121\u7528\u9078\u9805-- {1}
     30getopt.requires2={0}: \u9078\u9805\u9700\u8981\u4e00\u500b\u53c3\u6578 -- {1}
     31getopt.invalidValue=\u7121\u6548\u7684\u503c {0} \u5c0d\u65bc\u53c3\u6578'has_arg'
  • installer/resources/checklist.md

    r6fe25cd re71d1d38  
    7373  - For any invalid that break the test, fix up the po file manually, or fix on
    7474    tx and pull again, or (if new) comment out in .tx/config (add a comment why)
    75     and delete the po file
     75    and delete the po file.
     76    See instructions in .tx/config for fixing up getopt properties files.
    7677  - `installer/resources/poupdate-man.sh` to generate new man page translations
    7778    (requires po4a package)
  • tests/scripts/checkutf8.sh

    r6fe25cd re71d1d38  
    5656done
    5757
     58# Java properties files (when not using our DataHelper methods) must be ISO-8859-1
     59# https://docs.oracle.com/javase/6/docs/api/java/util/Properties.html
    5860echo "Checking getopt properties files ..."
    5961for i in `find core/java/src/gnu/getopt -name \*.properties -type f`
    6062do
    6163        #echo "Checking $i ..."
    62         iconv -f UTF8 -t UTF8 $i -o /dev/null
     64        iconv -f ISO-8859-1 -t ISO-8859-1 $i -o /dev/null
    6365        if [ $? -ne 0 ]
    6466        then
Note: See TracChangeset for help on using the changeset viewer.