Last modified: 2005-11-09 06:02:45 UTC
The Vietnamese Wiktionary (vi:) is very much out of sync with the Vietnamese Wikipedia, where we have changed a large number of translations using the MediaWiki: namespace. There isn't yet a localization file for Vietnamese, but we were hoping that the MediaWiki messages could be imported from Wikipedia to Wiktionary. This would make our lives much easier. Since I'm a sysop at both wikis, I'll then go into Wiktionary afterwards and customize the imported messages to say "Wiktionary" instead of "Wikipedia", for example.
At the moment we don't really have a clean way to do this kind of importing. It could be done with a little work, but I think it would be better still to take the material from vi.wikipedia.org and make a language file, then update all the other wikis from there. (Note that there are stub sites at vi.wikibooks.org and vi.wikiquote.org as well already, plus whatever future sites and third party wikis would benefit from having a base translation file ready.) You can start by generating a message array straight out of the wiki: http://vi.wikipedia.org/w/index.php?title=Special:Allmessages&ot=php
*** Bug 2145 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > At the moment we don't really have a clean way to do this kind of importing. It > could be done with a little work, but I think it would be better still to take the > material from vi.wikipedia.org and make a language file, then update all the other > wikis from there. Trần Thế Trung ([[vi:User:Tttrung]]) has mostly translated MediaWiki 1.5. We're working on reviewing the translations, and hopefully it'll be ready to use in a couple weeks. One question though: what about all the customized messages at the Vietnamese Wikipedia? The MediaWiki localization uses a pretty simple, one-line version of [[vi:MediaWiki:Noarticletext]], for example, while we've customized it to look pretty and explanatory. On the other hand, many of our customizations are simply straight translations of the MediaWiki defaults. Will our actual customizations be overridden, or will we be able to pick and choose?
The default update is to overwrite only those messages last 'edited' by the pseudo-user "MediaWiki default". Anything that's been customized by editing within the wiki will thus stay.
Created attachment 724 [details] Version 17/07/2005 Here is LanguageVi.php for Vietnamese interface, that should work with MediaWiki 1.5 beta. This file is updated on 17 Jul 2005, which has bug fixed on Dtae & Time Preferences, from previous version sent to [[:vi:User:Mxn]]. There are still some System Messages here and there that are not translated, or not "well" translated, mostly on about "exif". This mean update may be available in future.
Comment on attachment 724 [details] Version 17/07/2005 >'tog-fancysig' => 'Chữ ký không có liên kết đến trang cá nhân', >"copyrightwarning" => "*Xin dùng [[{{ns:4}}:Chỗ thử|chỗ thử soạn thảo]] nếu bạn chỉ muốn thử nghiệm. *Xin đọc thêm hướng dẫn về [[Trợ giúp:Soạn thảo|soạn thảo]] và [[Trợ giúp:Viết bài mới|viết bài mới]]. *Mọi đóng góp cho {{SITENAME}} đều tuân theo GNU Free Documentation Licence (Xem $1). Nếu bạn không muốn nội dung bạn nhập bị người khác sửa, đừng viết vào đây. <b>KHÔNG LẤY TÀI LIỆU TỪ NGUỒN KHÁC MÀ CHƯA XIN PHÉP!</b>", >'copyrightwarning2' => "*Xin dùng [[{{ns:4}}:Chỗ thử|chỗ thử soạn thảo]] nếu bạn chỉ muốn thử nghiệm. *Xin đọc thêm hướng dẫn về [[Trợ giúp:Soạn thảo|soạn thảo]] và [[Trợ giúp:Viết bài mới|viết bài mới]]. *Mọi đóng góp cho {{SITENAME}} đều tuân theo GNU Free Documentation Licence (Xem $1). Nếu bạn không muốn nội dung bạn nhập bị người khác sửa, đừng viết vào đây. <b>KHÔNG LẤY TÀI LIỆU TỪ NGUỒN KHÁC MÀ CHƯA XIN PHÉP!</b>",
Comment on attachment 724 [details] Version 17/07/2005 Here are some more minor changes >'edithelppage' => '{{ns:4}}:Soạn thảo', >'editingsection' => 'Soạn thảo $1', >'editingcomment' => 'Soạn thảo $1', >'prefs-help-realname' => '* <strong>Tên thật</strong> (tùy): tên này (nếu được nhập) sẽ được dùng trong các đóng góp của bạn.', >'markaspatrolleddiff' => "Đánh dấu tuần tra", >'markaspatrolledlink' => "<div class='patrollink'>[$1]</div>", >'markaspatrolledtext' => "Đánh dấu tuần tra", >'markedaspatrolled' => "Đã đánh dấu tuần tra", >'markedaspatrolledtext' => "Bản được đánh dấu đã tuần tra.", >'rcpatroldisabled' => "\"Thay đổi gần đây\" của các trang tuần tra không bật", >'rcpatroldisabledtext' => "Chức năng \"thay đổi gần đây\" của các trang tuần tra hiện không được bật.", >'showhideminor' => "$1 sửa nhỏ | $2 robot | $3 thành viên | $4 tuần tra", // Full version
(In reply to comment #7) May be: > >'edithelppage' => 'Trợ_giúp:Soạn thảo',
Comment on attachment 724 [details] Version 17/07/2005 Important bug fixing!!! 'ipboptions' => '2 giờ:2 hours,1 ngày:1 day,3 ngày:3 days,1 tuần:1 week,2 tuần:2 weeks,1 tháng:1 month,3 tháng:3 months,6 tháng:6 months,1 năm:1 year,vô hạn:infinite', Minor changes: "blockedtext" => "Bạn bị chặn bởi $1 vì:<br />$2<p>Bạn có thể liên hệ với $1 hoặc các [[{{ns:4}}:Người quản lý|người quản lý]] khác để thảo luận.",
Could someone post new file which has above fixes AND is up to current standards, Can look from http://cvs.defau.lt/cvsweb.cgi/~checkout~/phase3/languages/LanguageRu.php?rev=1.96&content-type=text/plain what language file should and should not contain. Currently there is lots of old stuff and stuff that only Language.php should have.
Created attachment 835 [details] Version 28 - Aug Here is the newest version. I have added things that ressemble LanguageRu.php. I have not delete any things. If any one find things that should be reserved for Language.php, they can delete them. The section on "exif" is still not fully translated, but this sould not be a big problem for now, since very few people use it. In my opinion this version can be used now - quality not highest but acceptable, given the limited time that I have for this.
File committed with changes to cvs head. Changing component to wikimedia web sites.
Created attachment 853 [details] Version 05 Sep 2005, fix magic word Firstly, thanks for the update to Vietnamese Wikipedia. Many of the features are working fine. Actually many system messages remain in old versions, even if they were originally created by MediaWiki default in English and have not been translated manually. Here I give a small modif which might be better for not inteferencing with $wgMagicWordsEn. Change $wgMagicWordsEn -> $wgMagicWordsVi Add function getMagicWords() To make $wgMagicWordsVi effective. Could some one help formatting number "2 005" to "2.005"? I also wander why MAG_REDIRECT does not work in Vietnamese. We are waiting for updating on other Vietnamese Wiki (Wiktionary, ...).
(In reply to comment #13) > Could some one help formatting number "2 005" to "2.005"? For now: Could some one help formatting number "2 005" to "2005"? Could some one help formatting number "12 005" to "12005"? (the simplest format, and more robust to fit more tastes).
Created attachment 855 [details] fix number formatting Here is the fix for number formatting. I notice that the all other Vietnamese wiki have been updated with this new language file. There is however still one small bug on the tooltip for Vietnamese Wiktionary and for at least IE. When I logout the tooltips are in English. When I login the tooltips are in Vietnamese!
Created attachment 856 [details] minor error fixing This is better (sorry, I forgot some separating ","). Someone could test this for me since I am "blinded": can not run MediaWiki to test this rightnow; although there is high chance that this should work correctly now, since the changes are really minor.
(In reply to comment #15) > Created an attachment (id=855) [edit] > fix number formatting > > Here is the fix for number formatting. > > I notice that the all other Vietnamese wiki have been updated with this new > language file. > > There is however still one small bug on the tooltip for Vietnamese Wiktionary > and for at least IE. When I logout the tooltips are in English. When I login > the tooltips are in Vietnamese! You probably have to do a "hard reload" (IE: Shift+Reload; Moz: Ctrl+Reload), because your browser probably isn't picking up the new and improved JavaScript file. If that doesn't work then it's probably a bug.
Also, the number formatting is screwing up the display of years. Now, the year 2005 is displayed as "2 005". I haven't taken a look at the revised patch yet, but please ensure that years aren't going to be displayed as "2.005". That would look quite embarassing!
Also, the "Wikipedia talk" namespace isn't setup as a synonym for "Thảo luận Wikipedia", breaking a number of links. Changing severity to "major", since it breaks too many links.
(In reply to comment #17) >You probably have to do a "hard reload" (IE: Shift+Reload; Moz: Ctrl+Reload),because your browser probably isn't picking up the new and improved JavaScriptfile. If that doesn't work then it's probably a bug. Thanks, that works. The number formatting is fixed by new patch. The "Wikipedia talk" bug is harder, I have look around wiki in other languages but none solves this. None have "Wikipedia talk", they (French, German, Russian) all have that namespace in their languages. Either we have to manually change all ancient links to Vietnamese or use "Wikipedia talk" instead of "Thảo luận Wikipedia", if we cannot wait for a patch to resolve this bug. I vote for manually changing the links since it provide consistent naming convention.
Created attachment 859 [details] fixe Wikipedia_talk name space Here is the patch for "wikipedia_talk" namespace. Again, could some one test it for me, since I cannot have MediaWiki with me right now.
Please use the newest version in http://cvs.defau.lt/phase3/languages/LanguageVi.php ( currently http://cvs.defau.lt/cvsweb.cgi/~checkout~/phase3/languages/LanguageVi.php?rev=1.3&content-type=text/plain ) as the base version where you do the modifications. It would take *much* time to do the diffs between the new files you have posted and the original base and merging them to the file I cleaned up and committed to cvs.
Created attachment 865 [details] re-do from commited/cleaned patch (In reply to comment #22) > Please use the newest version inhttp://cvs.defau.lt/phase3/languages/LanguageVi.php ( currentlyhttp://cvs.defau.lt/cvsweb.cgi/~checkout~/phase3/languages/LanguageVi.php?rev=1.3&content-type=text/plain) as the base version where you do the modifications. It would take *much* timeto do the diffs between the new files you have posted and the original base andmerging them to the file I cleaned up and committed to cvs. Voila: the patch based on your committed version. If you diffs, search for "#Change" because I have note the important changes with this tag. Good new: I have test this patch and it works: fix all the mentioned bugs. I have also add some message translations and remove many line-breaking characters inside the Vietnamese message that my Microsoft Notepad added. If no more complain is received, you can update the Wiki sites with this patch.
Committed to HEAD.
Created attachment 874 [details] fix a small bug (1 variable for function formatnum) Only when updating to Wiki site does this bug uppear. Fixed (hopefully) by this patch.
REOPENing bug, due to Attachment 874 [details]. Adding keyword "patch."
Oops, attention, attachment 874 [details] was based on http://cvs.defau.lt/cvsweb.cgi/~checkout~/phase3/languages/LanguageVi.php? rev=1.3&content-type=text/plain Not on the newest CVS version. I am going to look at the newest version ...
Created attachment 875 [details] fix the same bug from CVS 1.5 I note that poeple has did some channges in CVS 1.5: introducing new variable (year)in formatNum which generated the bug. Here is the fix based on the CVS 1.5, making year optional. I have quickly test, and on my MediaWiki, it works.
Thanks. It's fixed. The delay is 1 day, which might be improved in future when someone from Vietnamese wiki site has access to CVS.
There's no longer a thousands separator, because of this code: > var $digitTransTable = array( > ',' => '', > '.' => ',' > ); It should read: > var $digitTransTable = array( > ',' => '.', > '.' => ',' > ); Note the '.' in the second line.
Can you give a reference to the thousand seperator '.' in Vietnamese standard? I have seen ' ' , "'", "`" and ''.
Any thousands separator would be nice, because some of the numbers (especially on [[vi:Đặc biệt:Statistics]]) get unwieldy without it. (with the semi-colon at the end) is alright, except that it gets treated as plain text in some places, so you end up with some messages saying "308 592,5" for instance. And in English, "'" is used in financial contexts, just to clear up the confusion between "." and ",". I'm not sure if Vietnamese writers use it the same way. "." is the traditional European way of punctuating the numbers, and a lot of Wikipedia language editions use it. If you'd like to hold a vote at the Vietnamese Wikipedia, that'd be fine, but I think the consensus will probably be to use ".".
Also: as far as I can tell, the vast majority of articles at the Vietnamese Wikipedia currently use ".", except for some science articles, since the SI (Metric System) dictates the use of a space as the separator (technically, it would be " ", but that character isn't supported by many browsers and fonts.
ok, let's go with "." as thousand seperator.
There hasn't been any activity here for quite some time, probably because this bug has been marked fixed. Rather than reopening this bug, which is about the localization file in general, I've reopened an earlier Bug 2721, which dealt specifically with the digit separators.