Pogovor o predlogi:Wikivar
Dodaj temoVidez
changing the names of the namespaces
[uredi]Gangleri, is it possible:
- {{ns:4}} = {{ns:Project}}
- generates: Wikinavedek (Wikipedija) --> Wikinavedek 2
the configuration will be made in another place
- {{ns:5}} = {{ns:Project_talk}}
- generates: Pogovor o Wikinavedku (Pogovor_k_Wikipediji) --> Pogovor_o_Wikinavedku2
done see below (#function LanguageSl)
- generates: Pogovor o Wikinavedku (Pogovor_k_Wikipediji) --> Pogovor_o_Wikinavedku2
- {{ns:7}} = {{ns:Image_talk}}
- generates: Pogovor o sliki (Pogovor_k_sliki) --> Pogovor_o_sliki 1 – done see below
- {{ns:9}} = {{ns:MediaWiki_talk}}
- generates: Pogovor o MediaWiki (MediaWiki_talk) --> Pogovor_o_MediaWiki 1 – done see below
- {{ns:11}} = {{ns:Template_talk}}
- generates: Pogovor o predlogi (Pogovor_k_predlogi) --> Pogovor_o_predlogi 1 – done see below
- {{ns:12}} = {{ns:Help}}
- generates: Pomoč (Help) --> Pomoč 1 – done see below
- {{ns:13}} = {{ns:Help_talk}}
- generates: Pogovor o pomoči (Help_talk) --> Pogovor_o_pomoči 1 – done see below
- {{ns:15}} = {{ns:Category_talk}}
- generates: Pogovor o kategoriji (Pogovor_k_kategoriji) --> Pogovor_o_kategoriji 1 – done see below
- {{SITENAME}}
P.S. For better view see editing page. Regards, --Klemen Kocjančič (Pogovor - Hitri odgovor) 12:26, 23 januar 2006 (UTC)
links
[uredi]- template:Wikivar T
- template:Wikivar/GRAMMAR
- w:en:List of grammatical cases
- b:user:Gangleri/tests/bugzilla
- bugzilla:04685 – "LanguageSl.php hardcodes project namespace as Wikipedija"
- CVS: languages/
- w:en:IRC: #mediawiki, #wiktionary
- meta:Help:Magic words#GRAMMAR:
- meta:special:Search/GRAMMAR
notes:
result depends on the search namespaces activated at meta:special:Preferences
search={{grammar: does not provide the pages including "{{grammar:"
- meta:special:Search/GRAMMAR
- w:en:Slovenian language
- w:sl:Slovinčina
- special:Allmessages: b:, n:, q:, s:, wikt:, w:
to-do
[uredi]- at template:Wikivar/GRAMMAR: include / add all names of the sister projects: b:, n:, q:, s:, wikt:, w:
- identify what value (what grammatical case) must / should be used together with "Pogovor_o_" at #function LanguageSl
- ...
additions for the names of the namespaces
[uredi]names of the namespaces
[uredi]you / we need:
- NS_PROJECT_TALK => FALSE, # Set in constructor
example starting from LanguageFi.php
reference: oldid=3844 (code from LanguageFi.php)
note: Please note that spaces are not allowed in the names of the namespaces. It is a must to use underscores instead.
/* private */ $wgNamespaceNamesSl = array( NS_MEDIA => 'Media', NS_SPECIAL => 'Posebno', NS_MAIN => '', NS_TALK => 'Pogovor', NS_USER => 'Uporabnik', NS_USER_TALK => 'Uporabniški_pogovor', NS_PROJECT => $wgMetaNamespace, NS_PROJECT_TALK => FALSE, # Set in constructor NS_IMAGE => 'Slika', NS_IMAGE_TALK => 'Pogovor_o_sliki', NS_MEDIAWIKI => 'MediaWiki', NS_MEDIAWIKI_TALK => 'Pogovor_o_MediaWiki', NS_TEMPLATE => 'Predloga', NS_TEMPLATE_TALK => 'Pogovor_o_predlogi', NS_HELP => 'Pomoč', NS_HELP_TALK => 'Pogovor_o_pomoči', NS_CATEGORY => 'Kategorija', NS_CATEGORY_TALK => 'Pogovor_o_kategoriji' ) + $wgNamespaceNamesEn;
- Klemen please confirm that this is right! Gangleri 14:57, 23 januar 2006 (UTC)
- Correct! Regards, --Klemen Kocjančič (Pogovor - Hitri odgovor) 15:00, 23 januar 2006 (UTC)
function LanguageSl
[uredi]example starting from LanguageFi.php
reference: oldid=3844 (code from LanguageFi.php)
class LanguageSl extends LanguageUtf8 { function LanguageSl() { global $wgNamespaceNamesSl, $wgMetaNamespace; LanguageUtf8::LanguageUtf8(); $wgNamespaceNamesSl[NS_PROJECT_TALK] = 'Pogovor_o_' . $this->convertGrammar( $wgMetaNamespace, 'orodnik' ); } # function getBookstoreList () { # global $wgBookstoreListSl ; # return $wgBookstoreListSl ; # } function getNamespaces() { global $wgNamespaceNamesSl; return $wgNamespaceNamesSl; } # function getQuickbarSettings() { # global $wgQuickbarSettingsSl; # return $wgQuickbarSettingsSl; # } # function getSkinNames() { # global $wgSkinNamesSl; # return $wgSkinNamesSl; # } # function getDateFormats() { # global $wgDateFormatsSl; # return $wgDateFormatsSl; # } # ... continued ... }
- Klemen please adjust the grammatical case!
- I have no clue what other functions you need. Just take a look at the LanguageXx.php (and MessagesXx.php) files using Slavic languages. Thanks in advance! Gangleri
- Well, here I'm clueless, what I should done here? Regards, --Klemen Kocjančič (Pogovor - Hitri odgovor) 15:02, 23 januar 2006 (UTC)
- Just insert the same grammatical case used with "Pogovor_o_" as used at template:Wikivar/GRAMMAR#please work here (new). Thanks in advance! Gangleri 17:48, 23 januar 2006 (UTC)
- Like this? Regards, --Klemen Kocjančič (Pogovor - Hitri odgovor) 18:23, 23 januar 2006 (UTC)
- OK for me! Please confirm if OK for you. Best regards Gangleri 18:56, 23 januar 2006 (UTC)
10-4 from me ;). I see no problem. Regards, --Klemen Kocjančič (Pogovor - Hitri odgovor) 19:36, 23 januar 2006 (UTC)