Changeset 1021

Show
Ignore:
Timestamp:
01/05/03 21:13:07 (8 years ago)
Author:
kuhlmann
Message:

use C.i18n instead of build.i18n

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/doc/README.i18n

    r1008 r1021  
    2323 
    2424If you want to make a new translation, lets assume for Danish (language 
    25 code: da), you start by copying the build.i18n file from the latest mICQ 
    26 source package to a new file, da.i18n. Add a hash sign in front of every 
    27 line of this file. Then translate each line, and for each line done, remov
    28 the leading hash sign. This way, all untranslated lines are commented out, 
    29 while all translated lines are not. When you've done a significant part of 
    30 the file, simply mail it to me (i18n@ruediger-kuhlmann.de, ICQ # 82274703). 
    31 You may want to contact me when you start working on a translation as well. 
    32 From this on, follow the directions for translation updates. 
     25code: da), you start by copying the C.i18n file from the latest mICQ source 
     26package to a new file, da.i18n. Add a hash sign in front of every line of 
     27this file. Then translate each line, and for each line done, remove th
     28leading hash sign. This way, all untranslated lines are commented out, while 
     29all translated lines are not. When you've done a significant part of the 
     30file, simply mail it to me (i18n@ruediger-kuhlmann.de, ICQ # 82274703). You 
     31may want to contact me when you start working on a translation as well. From 
     32this on, follow the directions for translation updates. 
    3333 
    3434UPDATING A TRANSLATION WITHOUT CVS 
     
    7474 
    7575The scripts i18n-extract and i18n-number extract the current set of strings 
    76 into build.i18n resp. number new strings without a number. They're usually 
     76into C.i18n resp. number new strings without a number. They're usually 
    7777called by typing "make lang" in the src/ subdirectory after new strings have 
    7878been added. These script create backups. 
  • trunk/lang/Makefile.am

    r966 r1021  
    22 
    33langdir = $(datadir)/micq 
    4 lang_DATA =
     4lang_DATA = C.i18n
    55         de.i18n de_CH.i18n de_fun.i18n en.i18n en_fun.i18n \ 
    66         es.i18n fr.i18n ru.i18n ja_JP.UTF-8.i18n ro.i18n \ 
  • trunk/lang/i18n-extract

    r764 r1021  
    22cd "../lang/"; 
    33 
    4 echo "Extracting translations to build.i18n." 
    5 touch build.i18n 
    6 mv build.i18n build.i18n~ 
     4echo "Extracting translations to C.i18n." 
     5touch C.i18n 
     6mv C.i18n C.i18n~ 
    77 
    88bla="\$I" 
     
    1111    | sed "s¹i18n¹¶i18n¹g" | tr ¶ "\n" | grep "^i18n ([0-9#]" \ 
    1212    | sed 's¹" "¹¹g;s¹i18n *(\([0-9#]*\), *"\(\([^\"]\|\\.\)*\)").*¹\1:\2¹;s¹^\([0-9]\):¹00\1:¹;s¹^\([0-9][0-9]\):¹0\1:¹' \ 
    13     | sed 's¹\\a¹¹g;s¹\\t¹     ¹g;s¹\\"¹"¹g' | sort -n | uniq ) > build.i18n 
     13    | sed 's¹\\a¹¹g;s¹\\t¹     ¹g;s¹\\"¹"¹g' | sort -n | uniq ) > C.i18n 
    1414 
    1515cat ../src/*.c \ 
    1616    | sed "s¹i18n¹¶i18n¹g" | tr ¶ "\n" | grep "^i18n ([0-9#]" \ 
    1717    | sed 's¹i18n *(\([0-9#]*\),.*¹\1:¹;s¹^\([0-9]\):¹00\1:¹;s¹^\([0-9][0-9]\):¹0\1:¹' \ 
    18     | sort -n | uniq > build.i18n.num 
     18    | sort -n | uniq > C.i18n.num 
    1919 
    20 cat build.i18n | grep "^[0-9#]*:" | sed 's¹\([0-9#]*:\).*¹\1¹' | sort -n > build.i18n.exnum 
     20cat C.i18n | grep "^[0-9#]*:" | sed 's¹\([0-9#]*:\).*¹\1¹' | sort -n > C.i18n.exnum 
    2121 
    2222echo -n "Strings used in files:" 
    23 cat build.i18n.num | wc -l 
     23cat C.i18n.num | wc -l 
    2424echo -n "Strings extracted ok:" 
    25 cat build.i18n.exnum | wc -l 
    26 diff -u build.i18n.num build.i18n.exnum | uniq 
     25cat C.i18n.exnum | wc -l 
     26diff -u C.i18n.num C.i18n.exnum | uniq 
    2727 
    28 rm build.i18n.num build.i18n.exnum 
     28rm C.i18n.num C.i18n.exnum 
    2929 
    30 diff -u build.i18n~ build.i18n | tr '' '[' || true 
     30diff -u C.i18n~ C.i18n | tr '' '[' || true 
  • trunk/lang/i18n-format

    r888 r1021  
    11#!/bin/bash 
    22 
    3 test -f .build.i18n.fmt || test "x$1" = "xbuild.i18n" || ./i18n-format build.i18n 
     3test -f .C.i18n.fmt || test "x$1" = "xC.i18n" || ./i18n-format C.i18n 
    44 
    55cat $1 | grep -a % | grep -a "^[0-9]" \ 
     
    1414#    | sed "s/:[^%]*\(%[-0-9l]*.\)/.\1:/g;s/:[^%]*$//" | sed "s/:[^%]*\(%[-0-9l]*.\)/.\1:/g;s/:[^%]*$//" \ 
    1515 
    16 test "x$1" = "xbuild.i18n" && exit 0; 
     16test "x$1" = "xC.i18n" && exit 0; 
    1717 
    18 ERR=$(diff -u0 .build.i18n.fmt .$1.fmt | grep -v ^@ | sed "s/^.\(....\).*/\1/" | grep "^[0-9]" \ 
     18ERR=$(diff -u0 .C.i18n.fmt .$1.fmt | grep -v ^@ | sed "s/^.\(....\).*/\1/" | grep "^[0-9]" \ 
    1919      | sort | uniq -c | grep -v "^      1" | sed "s/^........//") 
    2020 
    21 for f in :: $ERR; do grep $f .$1.fmt; grep $f .build.i18n.fmt; done 
     21for f in :: $ERR; do grep $f .$1.fmt; grep $f .C.i18n.fmt; done 
  • trunk/lang/i18n-number

    r513 r1021  
    33my %defstr, $k, $uname, $name, $new, $pref; 
    44 
    5 open NRS, "<../lang/build.i18n" || die; 
     5open NRS, "<../lang/C.i18n" || die; 
    66 
    77{ my $neu = 0; 
  • trunk/lang/i18n-template

    r1007 r1021  
    1616    while (<TMPL>) 
    1717    { 
    18         if (m¹^# \$Id: build.i18n,v ([0-9.]* 20../../.. ..:..:..).*¹) 
     18        if (m¹^# \$Id: C.i18n,v ([0-9.]* 20../../.. ..:..:..).*¹) 
    1919        { 
    2020            $version = $1; 
     
    121121} 
    122122 
    123 ReadTrans ("build"); 
     123ReadTrans ("C"); 
    124124 
    125125print "File             Comments Junk   Old     Changed New\n"; 
    126126while ($uname = shift) 
    127127{ 
    128     next unless $uname cmp "build.i18n"; 
     128    next unless $uname cmp "C.i18n"; 
    129129 
    130130    $ver = `grep -a "# *EN:" $uname | sed "s/.*EN://;s/.*,v //;s/ .*//"`; 
     
    140140    print "Old version tag: $ver.\n"; 
    141141     
    142     system "cvs -d $cvs rdiff -u -r $ver micq/lang/build.i18n" 
     142    system "cvs -d $cvs rdiff -u -r $ver micq/lang/C.i18n" 
    143143         . " | grep \"^-[0-9]\" | sed \"s,^-,,\" | sort -n -t : -k 1,1 -u -o .$uname.tainted"; 
    144144    ReadTainted ("$uname");