Index: trunk/phase3/languages/LanguageIs.php |
— | — | @@ -728,14 +728,39 @@ |
729 | 729 | 'yourpasswordagain' => "Lykilorð (aftur)", |
730 | 730 | 'yourrealname' => "Fullt nafn þitt*", |
731 | 731 | 'yourtext' => "Þinn texti", |
| 732 | + |
| 733 | +'variantname-is' => 'Íslenska', |
| 734 | +'variantname-iz' => 'Íslenzka', |
| 735 | +'yourvariant' => 'Ritkerfi' |
732 | 736 | ); |
733 | 737 | |
734 | 738 | #-------------------------------------------------------------------------- |
735 | 739 | # Internationalisation code |
736 | 740 | #-------------------------------------------------------------------------- |
737 | 741 | |
| 742 | +require_once( 'LanguageConverter.php' ); |
| 743 | +class IsConverter extends LanguageConverter { |
| 744 | + function loadDefaultTables() { |
| 745 | + $this->mTables = array(); |
| 746 | + $this->mTables['iz'] = array(); |
| 747 | + $this->mTables['is'] = array(); |
| 748 | + $this->mUcfirst = true; |
| 749 | + } |
| 750 | +} |
| 751 | + |
738 | 752 | class LanguageIs extends LanguageUtf8 { |
739 | | - |
| 753 | + function LanguageIs() { |
| 754 | + global $wgHooks; |
| 755 | + $this->mConverter = new IsConverter($this, 'is', |
| 756 | + array('is', 'iz'), |
| 757 | + array( |
| 758 | + 'is' => 'iz', |
| 759 | + 'iz' => 'is' |
| 760 | + ) |
| 761 | + ); |
| 762 | + $wgHooks['ArticleSaveComplete'][] = $this->mConverter; |
| 763 | + } |
| 764 | + |
740 | 765 | function getNamespaces() { |
741 | 766 | global $wgNamespaceNamesIs; |
742 | 767 | return $wgNamespaceNamesIs; |
— | — | @@ -850,4 +875,6 @@ |
851 | 876 | } |
852 | 877 | } |
853 | 878 | |
| 879 | +class LanguageIz extends LanguageIs {} |
| 880 | + |
854 | 881 | ?> |