Last modified: 2007-03-02 18:57:58 UTC
I've translated some of the Language.php file (based it on English (en), Croatian (hr) and Serbian (sr) files) and the Messages.php file. No files for this language existed so far, so I've decided to create them. Can someone please check these and tell me what else I need to do? Thanks.
Created attachment 1542 [details] LanguageBs.php translated file
Created attachment 1543 [details] MessagesBs.php Can somone please check these and make sure they're OK? Thanks.
I have tried my best to follow the English example and I've also used the Serbian and Croatian files as guides as well. I've also closely followed http://meta.wikimedia.org/wiki/MediaWiki_localization for directions on how to do this. If there are any mistakes or errors, please inform me and tell me how I can be of service.
Grepping "Viki" show up many messages where it has to be replaced with general namespace Portal, or with {{SITENAME}} if it is not used as namespace. Remember that all messages must apply to any new wiki, so there is no place for site specific modifications. Also there was a syntax error near 'recentchangestext'. And it would be great if you could check the translations against English ones. Some messages like allmessagesnotsupportedUI and allmessagesnotsupportedDB have been updated since they were first translated. Looks good if you can fix the problems mentioned above.
So, the errors are only in the MessagesBs.php file? The LanguageBs.php file is good? OK. I have a question about the <nowiki>{{ns}}</nowiki> namespaces. Some of the lines in Serbian and Croatian files use these namespaces instead of "Special" or "Wiktionary". I've also added those to this file, but how do I know that these will be appropriately used on Wiktionary and Wikipedia? (For example, on the Wiktionary, is <nowiki>{{ns:4}}</nowiki> going to say ''Wiktionary'' or ''Wikipedia''? It should say Wiktionary, right?) Should a template be created for this? I'll attach the updated file.
Created attachment 1547 [details] corrected MessagesBs.php file This is the corrected file. Please check it again. Thank you.
(In reply to comment #5) > So, the errors are only in the MessagesBs.php file? The LanguageBs.php file is > good? OK. I have a question about the <nowiki>{{ns}}</nowiki> namespaces. > Some of the lines in Serbian and Croatian files use these namespaces instead of > "Special" or "Wiktionary". I've also added those to this file, but how do I > know that these will be appropriately used on Wiktionary and Wikipedia? (For > example, on the Wiktionary, is <nowiki>{{ns:4}}</nowiki> going to say > ''Wiktionary'' or ''Wikipedia''? It should say Wiktionary, right?) Should a > template be created for this? I'll attach the updated file. About the {{ns}} namespace: is that determined by the Language.php file? (just wondering if I've answered my own question just now)
Created attachment 1548 [details] latest correction of MessagesBs.php I made a small correction to the Messages.php file again. Here is the updated file.
{{ns:#}} is a magic keyword and the number refers to namespace index defined in the LanguageXX.php. And if you don't like numbers you can just use the english names (for number four it is 'project'), like {{ns:special}}, {{ns:user_talk}} and {{ns:project}}. Following entries should use {{SITENAME}} 'aboutsite' => 'O projektu {{ns:4}}', 'anonymous' => 'Anonimni korisnik od {{ns:4}}', 'categoriespagetext' => 'Sledeće kategorije već postoje u {{ns:4}}', 'confirmdeletetext' => '... [[{{ns:4}}:Pravila|pravilima]] {{ns:4}}.', (only the last one) 'copyrightwarning' => 'Za sve priloge poslate {{ns:4}} smatramo da su objavljeni pod GNU Slobodnom Dokumentacionom Dozvolom (konsultujte $1 za detalje). 'lockdbsuccesstext' => '{{ns:4}} baza podataka je zaključana. <br /> Sjetite se da je otključate kad završite sa održavanjem.', *Morate imati odobrene \'\'kolačiće\'\' (\'\'\'cookies\'\'\') da bi ste pristupili na projekat {{ns:4}}. 'sitetitle' => '{{ns:4}}', 'siteuser' => '{{ns:4}} korisnik $1', 'siteusers' => '{{ns:4}} korisnik (korisnici) $1', Oh, and compare 'copyrightwarning' to the English: 'copyrightwarning' => 'Please note that all contributions to {{SITENAME}} are considered to be released under the $2 (see $1 for details). If you don\'t want your writing to be edited mercilessly and redistributed at will, then don\'t submit it here.<br /> You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>', It has second variable $2 too. LanguageBs.php looks ok to me. And I haven't found any other immediate errors or mistakes in MessagesBs.php
(In reply to comment #9) > ... And if you don't like numbers you can just use the english > names (for number four it is 'project'), like {{ns:special}}, {{ns:user_talk}} > and {{ns:project}}. I assume this ({{ns:special}}, {{ns:user_talk}} and {{ns:project}}) would be easier to read.
Thank you Niklas and Reinhardt. I have made the mentioned changes to the MessagesBs.php file. When will the files be uploaded and ready for use? Oh I had one more question. I've noticed that all the wikis that have these two files also have a template called "wikivar" that lists what each {{ns}} namespace is. Do I need to create one like that?
Created attachment 1549 [details] updated MessagesBs.php Here is the corrected version.
(In reply to comment #11) > ... I've noticed that all the wikis that have these two > files also have a template called "wikivar" that lists what each {{ns}} > namespace is. Do I need to create one like that? I created [[bs:template:wikivar]] few minutes before your comments. However it is not available at the sister projects [[bs:special:SiteMatrix#bs]]. I assume that the SITENAME should be 'Wikipedija'. After Niklas posts LanguageBs.php and MessagesBs.php to SVN this bug will be closed. ---- You will need to open another request and let all know what SITENAMES should be used for the sister projects. Looking at [[bs:]] I can see in the first line: "Dobrodošli na Wikipediju na bosanskom jeziku!" This means that you might need to define a GRAMMAR function in LanguageBs.php . Please compare with http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/LanguageSl.php?view=markup I am neither shure If you would like to implement GRAMMAR later nor if the actual LanguageBs.php contains GRAMMAR. The change could be done now or later. best regards reinhardt [[user:gangleri]]
Yes, you created the template on the Wikipedia for Bosnian, and on that one SITENAME should be Vikipedija (but the people that work on the Bosnian Wikipedia prefer for some odd reason to have Wikipedija ...even though we don't have a "w" in our language). How can I define the SITENAMES? Do I just create a new bug report and list sitenames for wikipedia, wiktionary, etc? Thank you all for your help.
(In reply to comment #14) > How can I define the SITENAMES? Do I just create a new bug report and list > sitenames for wikipedia, wiktionary, etc? Yes. See examples at http://bugzilla.wikimedia.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=SITENAME&order=Bug+Number
Created attachment 1551 [details] Corrected LanguageBs.php Here is the new LanguageBs.php file with recommendations that Reinhardt gave.
Fantastic! On LanguagesSl.php I needed weeks to understand how it works. A minor text but importanf php error: } case 'instrumental': # instrumental ... } break; break; I hope the examples for the usage of {{GRAMMAR:}} from [[q:sl:category:SITENAME]] are usefull to you. best regards reinhardt [[user:gangleri]]
what is the error? (I'm sorry...but it took me a while to understand the "sl" version of it...even though the languages are somewhat similar.) Please be specific about the error (tell me what to fix). I'm sorry...but I've spent about 7hrs straight last night translating this stuff not including a week for earlier translations. I can't wait to actually have this up and running.
you mean the double break? I've fixed that...should upload the new file in a min. anything else?
Created attachment 1552 [details] Corrected LanguageBs.php corrected minor mistake
(In reply to comment #17) > A minor text but importanf php error: } case 'instrumental': # instrumental There have been *two* errors: Sorry my fault! I have no UTF-8 compatible editor.
Created attachment 1553 [details] Corrected LanguageBs.php I'm not sure if I've fixed it...but please check. (You don't have a compatible editor? I use Notepad. I didn't know that it wasn't compatible...but apparently it works.)
OK for me now. Thanks for the hint about Notepad!
Opened also Bug 5612: Project names and sitenames for Bosnian projects
Thank you.
Committed to REL1_6 and HEAD. Thanks for the localisation.
Sorry to bother you again, but there were some errors in these files that needed been fixed. I have tried to fix this in these updates, but I'm not sure if it will work 100%. In these files I have removed the {{ns:}} numbering and replaced it with regular namespaces; this does prevent the problem for now, but wikis that use {{ns:}} in Bosnian language will still have those problems because {{ns:4}} displays in English and {{ns:5}} is not functioning correctly (It displays as "Razgovor_o_s_Wikipedia" on Wikipedia, while it should display as "Razgovor:Vikipedija" or as "Razgovor_o_Vikipediji"). How can this be fixed?
Created attachment 1577 [details] MessagesBs.php updated Here is the updated MessagesBs.php file.
Created attachment 1578 [details] updated file
Created attachment 1579 [details] updated file LanguageBs.php
Could someone update file LanguageBs.php with following parameters WIKIPEDIA - Wikipedia WIKIPEDIA_TALK - Wikipedia razgovor MEDIAWIKI - MediaWiki MEDIAWIKI_TALK - MediaWiki razgovor I think that "Wikipedia talk" name modification may not be in that file but I cannot figure out where to make that change. Thanks
(In reply to comment #31) > Could someone update file LanguageBs.php with following parameters Those would be inconsistent with the format of the other entries, e.g. "Razgovor_sa_korisnikom" and "Razgovor_o_pomoci".
"Razgovor_sa_korisnikom" and "Razgovor_o_pomoci" are direct translation of the function. MediaWiki and Wikipedia are names being used untranslated so the format needs to be a bit different gramatically. We have discussed this at Bosnian Wiki. See http://bs.wikipedia.org/wiki/Korisnik:Emir_Kotromani%C4%87/Radionica#Prijedlozi_za_imena_varijabli Thanks Dado
(In reply to comment #30) > Created an attachment (id=1579) [edit] > updated file LanguageBs.php Can you please post the file (unified patch is preferred) in the new format? You can find the latest one here: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/MessagesBs.php Thanks!
No patches, dead bug.