Pojdi na vsebino

Pogovor o predlogi:Wikivar

Vsebina strani ni podprta v drugih jezikih.
Dodaj temo
Iz Wikinavedka, proste zbirke navedkov in pregovorov

purge rev-ID : 3877

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)
  • {{ns:7}} = {{ns:Image_talk}}
    • generates: Pogovor o sliki (Pogovor_k_sliki) --> Pogovor_o_sliki 1done see below
  • {{ns:9}} = {{ns:MediaWiki_talk}}
    • generates: Pogovor o MediaWiki (MediaWiki_talk) --> Pogovor_o_MediaWiki 1done see below
  • {{ns:11}} = {{ns:Template_talk}}
    • generates: Pogovor o predlogi (Pogovor_k_predlogi) --> Pogovor_o_predlogi 1done see below
  • {{ns:12}} = {{ns:Help}}
    • generates: Pomoč (Help) --> Pomoč 1done see below
  • {{ns:13}} = {{ns:Help_talk}}
    • generates: Pogovor o pomoči (Help_talk) --> Pogovor_o_pomoči 1done see below
  • {{ns:15}} = {{ns:Category_talk}}
    • generates: Pogovor o kategoriji (Pogovor_k_kategoriji) --> Pogovor_o_kategoriji 1done see below
  • {{SITENAME}}
    • generates: Wikinavedek (Wikiquote) --> Wikinavedek 2
      this must be specified in the request at bugzilla:
      please just specify that SITENAME should have the same value as {{ns:Project}} if this is the case

  • ^1  - Same for all Slovene MediaWiki space.
  • ^2  - Just for Wikiquote/Wikinavedek


P.S. For better view see editing page. Regards, --Klemen Kocjančič (Pogovor - Hitri odgovor) 12:26, 23 januar 2006 (UTC)

[uredi]
  1. template:Wikivar T
  2. template:Wikivar/GRAMMAR
  3. w:en:List of grammatical cases
  4. b:user:Gangleri/tests/bugzilla
    1. bugzilla:04685 – "LanguageSl.php hardcodes project namespace as Wikipedija"
  5. CVS: languages/
    1. LanguageCs.php, markup
    2. LanguageFi.php, markup
    3. LanguageGa.php, markup
    4. LanguageRu.php, markup
    5. LanguageSk.php, markup
    6. LanguageSl.php, markup
  6. w:en:IRC: #mediawiki, #wiktionary
  7. meta:Help:Magic words#GRAMMAR:
    1. 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:"


  1. w:en:Slovenian language
  2. w:sl:Slovinčina
    1. w:sl:Kategória:Slovenčina, w:sl:Kategória:Slovanské jazyky
  3. special:Allmessages: b:, n:, q:, s:, wikt:, w:

to-do

[uredi]

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 ...
}
Well, here I'm clueless, what I should done here? Regards, --Klemen Kocjančič (Pogovor - Hitri odgovor) 15:02, 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)

wait / go ahead

[uredi]
  • Please go ahead! Gangleri 14:57, 23 januar 2006 (UTC)
  • Please wait! Gangleri 16:58, 23 januar 2006 (UTC)
  • Please go ahead! Gangleri 17:48, 23 januar 2006 (UTC)