Re: Question to Slovak Wikipedia SW
Stanislav Valasek <[email protected]> Thu, 26 Feb 2004 15:34:19 +0100
| Newsgroups | gmane.science.linguistics.wikipedia.international |
|---|---|
| Message-ID | <[email protected]> |
Thank you for RegEx clarification. So for Slovak we will use:
/^((?:á|ä|c(|d(|é|í|l(|l'|ó|ô||ú|ý||[a-z])+)(.*)$/sD
do you see some misspelling there? ( From PHP point of view :-) )
Please, also positive note is welcomed!
> ... (from Language.php) ...
># Default messages
>#-------------------------------------------------------------------
># Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
># hyphen (-). If you need more characters, you may be able to change
># the regex in MagicWord::initRegex
Yes, Slovak language use more that mentioned set of characters. But we
were unable to find mentioned regex - MagicWord::initRegex. Are there
some more files to be translated?
Following array variables were added and translated to LanguageSk.php
from Language.php:
- wgDateFormatsSk
- wgBookstoreListSk
- wgLanguageNamesEn
Which functions are necessary to add also to LanguageSk.php file to
support those variables?
Here are our guesses (Are those correct?):
wgDateFormatsSk>
- added getDateFormats, changed En -> Sk:
function getDateFormats() {
global $wgDateFormatsSk;
return $wgDateFormatsSK;
}
wgBookstoreListSk>
- added getBookstoreList, changed En -> Sk:
function getBookstoreList () {
global $wgBookstoreListSk;
return $wgBookstoreListSk;
}
wgLanguageNamesEn>
- added getLanguageNames AND getLanguageName, changed En -> Sk:
function getLanguageNames() {
global $wgLanguageNamesSk;
return $wgLanguageNamesSk;
}
function getLanguageName( $code ) {
global $wgLanguageNamesSk;
if ( ! array_key_exists( $code, $wgLanguageNamesSk ) ) {
return "";
}
return $wgLanguageNamesSk[$code];
}
Do we need to care about setting up of following variables (why, how)?:
- wgMetaNamespace - The meaning is "Wikipedia"?
- wgSitename - The meaning is the same "Wikipedia"?
Is it to reduce a duplication? Can we just replace variables with native
Slovak translations?
Updated wersion is now stored in:
http://meta.wikipedia.org/wiki/LanguageSk.php
Will be reviewed and than request for upload will be raised. (No testing
- just carefully checked with latest Language.php and LaguageSk.php from
CVS. Testing looks too complicated for me now!)
Still have problems ( not too urgent now :-) ) with international links
- http://en.wikipedia.org/wiki/Wikipedia:Perfect_article.
See first message in this thread.
Thank you for your help.
Best wishes
-- stanislav valasek