Changeset 662ae783f4b889624897e562deae1621c84f60f4

Show
Ignore:
Timestamp:
10/01/11 13:20:59 (8 months ago)
Author:
Neutron Soutmun <neo.neutron@…>
Children:
2ad9b50d37d7540cc6819836f4ebf0317a482ecd
Parents:
2f9fc9abf92804e53d4d2ef00ce5ac4c107b389b
git-author:
Neutron Soutmun <neo.neutron@…> (10/01/11 13:03:28)
git-committer:
Neutron Soutmun <neo.neutron@…> (10/01/11 13:20:59)
Message:

Use autopoint to manage the weblogin translation

  • configure.ac:
    • Add AM_GNU_GETTEXT{_VERSION} to initialize gettext.
    • Add weblogin-po/Makefile.in to AC_CONFIG_FILES.
  • autogen.sh:
    • Add autopoint.
  • config.h.in:
    • Update accordingly to new generated by autopoint.
  • weblogin/messages.po, weblogin/th_TH/*:
    • Drop as unneeded.
  • weblogin/locale/*, weblogin-po/*:
    • Move weblogin/locale to weblogin-po.
  • weblogin-po/LINGUAS:
    • Add th to the languages list.
  • weblogin-po/Makevars, weblogin-po/rahunas-weblogin.pot:
    • Add initial setup for gettext translation build.
  • weblogin-po/th.po:
    • Migrate old translation.
  • Makefile.am:
    • Add weblogin-po to SUBDIRS.
  • .gitignore, weblogin-po/.gitignore:
    • Ignore auto-generated files by autopoint.
Files:
4 added
2 removed
5 modified
1 moved

Legend:

Unmodified
Added
Removed
  • .gitignore

    r928656f r662ae78  
    1111config.sub 
    1212ltmain.sh 
     13ABOUT-NLS 
     14config.rpath 
  • Makefile.am

    re0a807c r662ae78  
    11ACLOCAL_AMFLAGS = -I m4 
    22EXTRA_DIST = weblogin 
    3 SUBDIRS = xmlrpc lcfg src data tools netsnmp-module example 
     3SUBDIRS = xmlrpc lcfg src data tools netsnmp-module example weblogin-po 
  • autogen.sh

    re0a807c r662ae78  
    22 
    33libtoolize --force 
     4autopoint --force 
    45aclocal 
    56automake --add-missing 
  • config.h.in

    re0a807c r662ae78  
    11/* config.h.in.  Generated from configure.ac by autoheader.  */ 
     2 
     3/* Define to 1 if translation of program messages to the user's native 
     4   language is requested. */ 
     5#undef ENABLE_NLS 
     6 
     7/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the 
     8   CoreFoundation framework. */ 
     9#undef HAVE_CFLOCALECOPYCURRENT 
     10 
     11/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in 
     12   the CoreFoundation framework. */ 
     13#undef HAVE_CFPREFERENCESCOPYAPPVALUE 
     14 
     15/* Define if the GNU dcgettext() function is already present or preinstalled. 
     16   */ 
     17#undef HAVE_DCGETTEXT 
     18 
     19/* Define to 1 if you have the <dlfcn.h> header file. */ 
     20#undef HAVE_DLFCN_H 
    221 
    322/* Define to 1 if you have the `dup2' function. */ 
     
    928/* Define to 1 if you have the `fork' function. */ 
    1029#undef HAVE_FORK 
     30 
     31/* Define if the GNU gettext() function is already present or preinstalled. */ 
     32#undef HAVE_GETTEXT 
     33 
     34/* Define if you have the iconv() function and it works. */ 
     35#undef HAVE_ICONV 
    1136 
    1237/* Define to 1 if you have the <inttypes.h> header file. */ 
     
    6691#undef HAVE_WORKING_VFORK 
    6792 
     93/* Define to the sub-directory in which libtool stores uninstalled libraries. 
     94   */ 
     95#undef LT_OBJDIR 
     96 
    6897/* Name of package */ 
    6998#undef PACKAGE 
  • configure.ac

    r2f9fc9a r662ae78  
    1616AC_SUBST(RAHUNAS_VERSION, major.minor.micro) 
    1717AC_SUBST(PROGRAM, "RahuNAS") 
     18 
     19# gettext 
     20AM_GNU_GETTEXT_VERSION([0.18.1]) 
     21AM_GNU_GETTEXT([external]) 
    1822 
    1923# Checks for programs. 
     
    9094  example/rahunas-vserver.conf 
    9195  example/rahunas-serviceclass.conf 
     96  weblogin-po/Makefile.in 
    9297]) 
    9398 
  • weblogin-po/th.po

    rbcaa56a r662ae78  
    1 # translation of RahuNAS Weblogin. 
    2 # Copyright (C) 2008 Neutron Soutmun 
    3 # This file is distributed under the same license as the RahuNAS Weblogin package. 
    4 # <neo.neutron@gmail.com>, 2008. 
    5 # , fuzzy 
    6 # Neutron Soutmun <neo.neutron@gmail.com>, 2010. 
     1# Thai translations for rahunas-weblogin package. 
     2# Copyright (C) 2011 Neutron Soutmun <neutron@rahunas.org>  
     3# This file is distributed under the same license as the rahunas-weblogin package. 
     4# Neutron Soutmun <neutron@rahunas.org>, 2011. 
    75# 
    86msgid "" 
    97msgstr "" 
    10 "Project-Id-Version: RahuNAS Weblogin 0.2.0\n" 
    11 "Report-Msgid-Bugs-To: \n" 
    12 "POT-Creation-Date: 2010-08-02 18:15+0700\n" 
    13 "PO-Revision-Date: 2010-08-02 18:22+0700\n" 
    14 "Last-Translator: Neutron Soutmun <neo.neutron@gmail.com>\n" 
    15 "Language-Team:  <l10n@opentle.org>\n" 
    16 "Language: \n" 
     8"Project-Id-Version: rahunas-weblogin 0.2.0\n" 
     9"Report-Msgid-Bugs-To: neutron@rahunas.org\n" 
     10"POT-Creation-Date: 2011-10-01 12:32+0700\n" 
     11"PO-Revision-Date: 2011-10-01 11:23+0700\n" 
     12"Last-Translator: Neutron Soutmun <neutron@rahunas.org>\n" 
     13"Language-Team: Thai\n" 
     14"Language: th_TH\n" 
    1715"MIME-Version: 1.0\n" 
    1816"Content-Type: text/plain; charset=UTF-8\n" 
    19 "Content-Transfer-Encoding: \n" 
     17"Content-Transfer-Encoding: 8bit\n" 
    2018 
    21 #: index.php:76 
     19#: weblogin/chpwd.php:65 
     20msgid "Can not connect database" 
     21msgstr "" 
     22 
     23#: weblogin/chpwd.php:69 
     24msgid "Confirm password missmatch" 
     25msgstr "" 
     26 
     27#: weblogin/chpwd.php:72 
     28msgid "Password has been changed" 
     29msgstr "" 
     30 
     31#: weblogin/chpwd.php:84 
     32msgid "Please insert all information" 
     33msgstr "" 
     34 
     35#: weblogin/chpwd.php:91 weblogin/login.php:164 weblogin/logout.php:170 
     36msgid "Username" 
     37msgstr "ชื่อผู้ใช้" 
     38 
     39#: weblogin/chpwd.php:94 weblogin/login.php:166 
     40msgid "Password" 
     41msgstr "รหัสผ่าน" 
     42 
     43#: weblogin/chpwd.php:97 
     44msgid "New Password" 
     45msgstr "รหัสผ่านใหม่" 
     46 
     47#: weblogin/chpwd.php:99 
     48msgid "Confirm Password" 
     49msgstr "ยืนยันรหัสผ่าน" 
     50 
     51#: weblogin/chpwd.php:102 
     52msgid "Change Password" 
     53msgstr "เปลี่ยนรหัสผ่าน" 
     54 
     55#: weblogin/index.php:76 
    2256msgid "If it is not redirecting within 3 seconds" 
    2357msgstr "" 
    2458 
    25 #: index.php:76 
     59#: weblogin/index.php:76 
    2660msgid "click" 
    2761msgstr "" 
    2862 
    29 #: index.php:76 
     63#: weblogin/index.php:76 
    3064msgid "Login Page" 
    3165msgstr "" 
    3266 
    33 #: login.php:163 logout.php:170 
    34 msgid "Username" 
    35 msgstr "ชื่อผู้ใช้" 
    36  
    37 #: login.php:165 
    38 msgid "Password" 
    39 msgstr "รหัสผ่าน" 
    40  
    41 #: login.php:168 
     67#: weblogin/login.php:169 
    4268msgid "Login" 
    4369msgstr "เข้าสู่ระบบ" 
    4470 
    45 #: logout.php:47 
     71#: weblogin/logout.php:47 
    4672msgid "day" 
    4773msgstr "วัน" 
    4874 
    49 #: logout.php:48 
     75#: weblogin/logout.php:48 
    5076msgid "days" 
    5177msgstr "วัน" 
    5278 
    53 #: logout.php:50 
     79#: weblogin/logout.php:50 
    5480msgid "hour" 
    5581msgstr "ชั่วโมง" 
    5682 
    57 #: logout.php:51 
     83#: weblogin/logout.php:51 
    5884msgid "hours" 
    5985msgstr "ชั่วโมง" 
    6086 
    61 #: logout.php:53 
     87#: weblogin/logout.php:53 
    6288msgid "minute" 
    6389msgstr "นาที" 
    6490 
    65 #: logout.php:54 
     91#: weblogin/logout.php:54 
    6692msgid "minutes" 
    6793msgstr "นาที" 
    6894 
    69 #: logout.php:56 
     95#: weblogin/logout.php:56 
    7096msgid "second" 
    7197msgstr "วินาที" 
    7298 
    73 #: logout.php:57 
     99#: weblogin/logout.php:57 
    74100msgid "seconds" 
    75101msgstr "วินาที" 
    76102 
    77 #: logout.php:174 
     103#: weblogin/logout.php:174 
    78104msgid "Session Start" 
    79105msgstr "เริ่มวาระ" 
    80106 
    81 #: logout.php:178 
     107#: weblogin/logout.php:178 
    82108msgid "Session End" 
    83109msgstr "สิ้นสุดวาระ" 
    84110 
    85 #: logout.php:179 
     111#: weblogin/logout.php:179 
    86112msgid "Never" 
    87 msgstr "ไม่มีสิ้นสุด" 
     113msgstr "ไม่มีกำหนด" 
    88114 
    89 #: logout.php:183 
     115#: weblogin/logout.php:183 
    90116msgid "Session Time" 
    91117msgstr "เวลาใช้งาน" 
    92118 
    93 #: logout.php:189 
     119#: weblogin/logout.php:189 
    94120msgid "Class of service" 
    95 msgstr "ระดับการให้บริการ" 
     121msgstr "บริการพิเศษ" 
    96122 
    97 #: logout.php:194 
     123#: weblogin/logout.php:194 
    98124msgid "Request URL" 
    99125msgstr "URL ที่ร้องขอ" 
    100126 
    101 #: logout.php:201 
     127#: weblogin/logout.php:201 
    102128msgid "OK" 
    103129msgstr "ตกลง" 
    104130 
    105 #: logout.php:202 
     131#: weblogin/logout.php:202 
    106132msgid "Logout" 
    107133msgstr "เลิกใช้งาน" 
    108134 
    109 #: messages.php:35 
     135#: weblogin/messages.php:35 
    110136msgid "Error! Could not connect to the server" 
    111137msgstr "ผิดพลาด! ไม่สามารถเชื่อมต่อกับเครื่องแม่ข่ายได้" 
    112138 
    113 #: messages.php:36 
     139#: weblogin/messages.php:36 
    114140msgid "Error! Could not connect to the authenticator server" 
    115141msgstr "ผิดพลาด! ไม่สามารถเชื่อมต่อกับเครื่องตรวจสอบสิทธิ์ได้" 
    116142 
    117 #: messages.php:37 
     143#: weblogin/messages.php:37 
    118144msgid "Error! User has been reach the maximum login" 
    119145msgstr "ผิดพลาด! ผู้ใช้นี้ทำการเข้าระบบพร้อมกันเกินจำนวนที่กำหนดไว้" 
    120146 
    121 #: messages.php:38 
     147#: weblogin/messages.php:38 
    122148msgid "Error! User already login" 
    123149msgstr "ผิดพลาด! ผู้ใช้นี้ได้เข้าระบบแล้ว" 
    124150 
    125 #: messages.php:39 
     151#: weblogin/messages.php:39 
    126152msgid "Error! User expired" 
    127153msgstr "ผิดพลาด! ผู้ใช้นี้หมดอายุลงแล้ว" 
    128154 
    129 #: messages.php:40 
     155#: weblogin/messages.php:40 
    130156msgid "Error! Invalid IP address" 
    131 msgstr "ผิดพลาด! IP address ไม่ถูกต้อง" 
     157msgstr "ผิดพลาด! หมายเลข IP ไม่ถูกต้อง" 
    132158 
    133 #: messages.php:42 
     159#: weblogin/messages.php:42 
    134160msgid "Error! Invalid username or password" 
    135161msgstr "ผิดพลาด! ชื่อผู้ใช้ หรือ รหัสผ่าน ไม่ถูกต้อง" 
    136162 
    137 #: messages.php:43 
     163#: weblogin/messages.php:43 
    138164msgid "Error! Logout failed! please try again" 
    139165msgstr "ผิดพลาด! ไม่สามารถเลิกใช้งานได้ กรุณาลองใหม่อีกครั้ง" 
    140166 
    141 #: messages.php:44 
     167#: weblogin/messages.php:44 
    142168msgid "Error! Please login" 
    143169msgstr "ผิดพลาด! กรุณาเข้าสู่ระบบ" 
    144170 
    145 #: messages.php:47 
     171#: weblogin/messages.php:47 
    146172msgid "Success! User has been authorized, please wait a moment" 
    147173msgstr "สำเร็จ! ผู้ใช้นี้ผ่านการตรวจสอบ กรุณารอสักครู่" 
    148174 
    149 #: messages.php:48 
     175#: weblogin/messages.php:48 
    150176msgid "Success! User has been logout" 
    151177msgstr "สำเร็จ! ผู้ใช้นี้ ได้เลิกใช้งานแล้ว" 
    152178 
    153 #~ msgid "Expired" 
    154 #~ msgstr "หมดอายุ" 
     179#: weblogin/user.class.php:78 
     180msgid "Error to query database" 
     181msgstr "" 
    155182 
    156 #~ msgid "Go! Go! Go!" 
    157 #~ msgstr "ไป! กัน! เลย!" 
     183#: weblogin/user.class.php:83 weblogin/user.class.php:102 
     184msgid "Invalid username or password" 
     185msgstr "" 
     186 
     187#: weblogin/user.class.php:120 
     188msgid "Error to change password" 
     189msgstr ""