Last modified: 2005-11-09 06:02:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2143 - Update Vietnamese interface
Update Vietnamese interface
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.6.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://vi.wiktionary.org/,http://vi.w...
: patch
: 2145 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-11 04:25 UTC by Minh Nguyễn
Modified: 2005-11-09 06:02 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Version 17/07/2005 (105.43 KB, text/plain)
2005-07-17 08:53 UTC, Trần Thế Trung
Details
Version 28 - Aug (106.72 KB, patch)
2005-08-28 16:19 UTC, Trần Thế Trung
Details
Version 05 Sep 2005, fix magic word (106.71 KB, patch)
2005-09-05 08:49 UTC, Trần Thế Trung
Details
fix number formatting (107.03 KB, patch)
2005-09-05 13:31 UTC, Trần Thế Trung
Details
minor error fixing (107.04 KB, patch)
2005-09-05 13:38 UTC, Trần Thế Trung
Details
fixe Wikipedia_talk name space (106.17 KB, patch)
2005-09-06 10:45 UTC, Trần Thế Trung
Details
re-do from commited/cleaned patch (87.70 KB, patch)
2005-09-08 09:04 UTC, Trần Thế Trung
Details
fix a small bug (1 variable for function formatnum) (87.71 KB, patch)
2005-09-11 14:22 UTC, Trần Thế Trung
Details
fix the same bug from CVS 1.5 (87.53 KB, patch)
2005-09-11 19:26 UTC, Trần Thế Trung
Details

Description Minh Nguyễn 2005-05-11 04:25:07 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.
Comment 1 Brion Vibber 2005-05-12 08:02:08 UTC
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
Comment 2 Brion Vibber 2005-05-12 08:03:38 UTC
*** Bug 2145 has been marked as a duplicate of this bug. ***
Comment 3 Minh Nguyễn 2005-07-17 06:26:31 UTC
(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?
Comment 4 Brion Vibber 2005-07-17 06:39:26 UTC
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.
Comment 5 Trần Thế Trung 2005-07-17 08:53:40 UTC
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 6 Trần Thế Trung 2005-07-17 10:00:01 UTC
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 7 Trần Thế Trung 2005-07-17 10:32:58 UTC
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
Comment 8 Trần Thế Trung 2005-07-17 10:36:22 UTC
(In reply to comment #7)
May be:
> >'edithelppage'  => 'Trợ_giúp:Soạn thảo',
Comment 9 Trần Thế Trung 2005-07-17 11:11:46 UTC
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.",
Comment 10 Niklas Laxström 2005-08-19 21:06:57 UTC
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.
Comment 11 Trần Thế Trung 2005-08-28 16:19:40 UTC
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.
Comment 12 Niklas Laxström 2005-09-02 19:51:59 UTC
File committed with changes to cvs head. Changing component to wikimedia web sites.
Comment 13 Trần Thế Trung 2005-09-05 08:49:36 UTC
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, ...).
Comment 14 Trần Thế Trung 2005-09-05 09:06:08 UTC
(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).
Comment 15 Trần Thế Trung 2005-09-05 13:31:34 UTC
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!
Comment 16 Trần Thế Trung 2005-09-05 13:38:39 UTC
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.
Comment 17 Minh Nguyễn 2005-09-05 17:54:40 UTC
(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.
Comment 18 Minh Nguyễn 2005-09-05 17:56:58 UTC
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!
Comment 19 Minh Nguyễn 2005-09-05 23:51:45 UTC
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.
Comment 20 Trần Thế Trung 2005-09-06 08:58:39 UTC
(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.
Comment 21 Trần Thế Trung 2005-09-06 10:45:34 UTC
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.
Comment 22 Niklas Laxström 2005-09-06 16:27:30 UTC
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.
Comment 23 Trần Thế Trung 2005-09-08 09:04:23 UTC
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.
Comment 24 Niklas Laxström 2005-09-11 07:59:47 UTC
Committed to HEAD.
Comment 25 Trần Thế Trung 2005-09-11 14:22:36 UTC
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.
Comment 26 Minh Nguyễn 2005-09-11 18:16:15 UTC
REOPENing bug, due to Attachment 874 [details]. Adding keyword "patch."
Comment 27 Trần Thế Trung 2005-09-11 19:07:12 UTC
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 ...
Comment 28 Trần Thế Trung 2005-09-11 19:26:14 UTC
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.
Comment 29 Trần Thế Trung 2005-09-12 14:47:59 UTC
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.
Comment 30 Minh Nguyễn 2005-09-12 18:04:39 UTC
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.
Comment 31 Trần Thế Trung 2005-09-13 07:30:53 UTC
Can you give a reference to the thousand seperator '.' in Vietnamese standard?

I have seen '&nbsp' , "'", "`" and ''.
Comment 32 Minh Nguyễn 2005-09-13 15:54:30 UTC
Any thousands separator would be nice, because some of the numbers (especially
on [[vi:Đặc biệt:Statistics]]) get unwieldy without it. &nbsp; (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&nbsp;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 ".".
Comment 33 Minh Nguyễn 2005-09-13 21:19:11 UTC
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 "&thinsp;", but that character isn't supported by many browsers and fonts.
Comment 34 Trần Thế Trung 2005-09-18 05:57:09 UTC
ok, let's go with "." as thousand seperator.
Comment 35 Minh Nguyễn 2005-11-09 06:02:45 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links