Browse Source

add fa.js (Farsi translations)

pull/567/head
Joe Germuska 11 years ago
parent
commit
724f3e9abe
  1. 77
      README.markdown
  2. 35
      source/js/Core/Language/locale/fa.js
  3. 1
      website/templates/_make.html

77
README.markdown

@ -136,46 +136,58 @@ Localization
*default is `en` English* *default is `en` English*
Languages available: Languages available:
* `af` *Afrikaans* * `af` *Afrikaans*
* `ar` *Arabic (beta)* * `ar` *Arabic*
* `hy` *Armenian*
* `eu` *Basque*
* `bg` *Bulgarian* * `bg` *Bulgarian*
* `ca` *Catalan* * `ca` *Catalan*
* `zh-ch` *Chinese*
* `cz` *Czech* * `cz` *Czech*
* `da` *Danish* * `da` *Danish*
* `de` *German / Deutsch* * `nl` *Dutch*
* `el` *Greek*
* `en` *English* * `en` *English*
* `es` *Spanish* * `en-24hr` *English (24-hour time)*
* `eu` *Basque/ Euskara* * `eo` *Esperanto*
* `fi` *Finnish* * `et` *Estonian*
* `fo` *Faroese* * `fo` *Faroese*
* `fa` *Farsi*
* `fi` *Finnish*
* `fr` *French* * `fr` *French*
* `gl` *Galician* * `gl` *Galician*
* `ka` *Georgian*
* `de` *German / Deutsch*
* `el` *Greek*
* `he` *Hebrew*
* `hu` *Hungarian* * `hu` *Hungarian*
* `hy` *Armenian*
* `id` *Indonesian*
* `is` *Icelandic* * `is` *Icelandic*
* `id` *Indonesian*
* `it` *Italian* * `it` *Italian*
* `iw` *Hebrew (beta)*
* `ja` *Japanese* * `ja` *Japanese*
* `ka` *Georgian*
* `ko` *Korean* * `ko` *Korean*
* `lv` *Latvian* * `lv` *Latvian*
* `nl` *Dutch* * `lt` *Lithuanian*
* `lb` *Luxembourgish*
* `ms` *Malay*
* `ne` *Nepali*
* `no` *Norwegian* * `no` *Norwegian*
* `pl` *Polish* * `pl` *Polish*
* `pt-br` *Brazilian Portuguese*
* `pt` *Portuguese* * `pt` *Portuguese*
* `pt-br` *Portuguese (Brazilian)*
* `rm` *Romansh*
* `ru` *Russian* * `ru` *Russian*
* `sr-cy` *Serbian - Cyrillic*
* `sr` *Serbian - Latin*
* `si` *Sinhalese*
* `sk` *Slovak* * `sk` *Slovak*
* `sl` *Slovenian* * `sl` *Slovenian*
* `sr-cy` *Serbian (Cyrillic)* * `es` *Spanish*
* `sr` *Serbian (Latin)*
* `sv` *Swedish* * `sv` *Swedish*
* `ta` *Tamil*
* `tl` *Tagalog* * `tl` *Tagalog*
* `tr` *Turkish* * `ta` *Tamil*
* `zh-cn` *Chinese*
* `zh-tw` *Taiwanese* * `zh-tw` *Taiwanese*
* `te` *Telugu*
* `tr` *Turkish*
Help us add more. Grab a copy of a language file and replace it with your language [Example language file](https://github.com/VeriteCo/StoryJS-Core/blob/master/Language/locale/en.js) and find your language's [two letter code here](http://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1) Help us add more. Grab a copy of a language file and replace it with your language [Example language file](https://github.com/VeriteCo/StoryJS-Core/blob/master/Language/locale/en.js) and find your language's [two letter code here](http://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1)
@ -227,20 +239,23 @@ Due to recent changes to the Google Maps API, you need a [API Key](https://devel
###Font Options ###Font Options
`font:` `font:`
* `Arvo-PTSans` * `AbrilFatface-Average` *Abril Fatface & Average*
* `Merriweather-NewsCycle` * `Arvo-PTSans` *Arvo & PT Sans*
* `PoiretOne-Molengo` * `Bevan-PotanoSans` *Bevan & Potano Sans*
* `PTSerif-PTSans` * `BreeSerif-OpenSans` *Bree Serif & Open Sans*
* `DroidSerif-DroidSans` * `DroidSerif-DroidSans` *Droid Serif & Droid Sans*
* `Lekton-Molengo` * `Georgia-Helvetica` *Georgia & Helvetica Neue*
* `NixieOne-Ledger` * `Lekton-Molengo` *Lekton & Molengo*
* `AbrilFatface-Average` * `Merriweather-NewsCycle` *Merriweather & News Cycle*
* `PlayfairDisplay-Muli` * `NewsCycle-Merriweather` *News Cycle & Merriweather*
* `Rancho-Gudea` * `NixieOne-Ledger` *Nixie One & Ledger*
* `Bevan-PotanoSans` * `Pacifico-Arimo` *Pacifico & Arimo*
* `BreeSerif-OpenSans` * `PlayfairDisplay-Muli` *Playfair Display & Muli*
* `SansitaOne-Kameron` * `PoiretOne-Molengo` *Poiret One & Molengo*
* `Pacifico-Arimo` * `PTSerif-PTSans` *PT Serif & PT Sans*
* `PT` *PT Sans & PT Narrow & PT Serif*
* `Rancho-Gudea` *Rancho & Gudea*
* `SansitaOne-Kameron` *Sansita One & Kameron*
* Or make your own * Or make your own
####Font Combination Preview: ####Font Combination Preview:

35
source/js/Core/Language/locale/fa.js

@ -0,0 +1,35 @@
if(typeof VMM != 'undefined') {
VMM.Language = {
lang: "fa",
api: {
wikipedia: "fa"
},
date: {
month: ["فروردین", "اردیبهشت", "خورداد", "تیر", "امرداد", "شهریور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"],
month_abbr: ["فروردین", "اردیبهشت", "خورداد", "تیر", "امرداد", "شهریور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"],
day: ["یکشنبه","دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"],
day_abbr: ["یکشنبه","دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"]
},
dateformats: {
year: "yyyy",
month_short: "mmm",
month: "mmmm yyyy",
full_short: "mmm d",
full: "mmmm d',' yyyy",
full: "mmmm d',' yyyy",
time_no_seconds_short: "h:MM TT",
time_no_seconds_short: "h:MM TT",
full_long: "mmm d',' yyyy 'at' h:MM TT",
full_long_small_date: "h:MM TT'<br/><small>mmm d',' yyyy'</small>'"
},
messages: {
loading_timeline: "بارگذاری، شکیبا باشید...",
return_to_title: "ابتدای زمانبندی",
expand_timeline: "بزرگنمایی",
contract_timeline: "کوچکنمایی",
wikipedia: "از ویکی پدیا، دانشنامه آزاد",
loading_content: "بارگذاری",
loading: "بارگذاری"
}
}
}

1
website/templates/_make.html

@ -85,6 +85,7 @@
<option value="eo">Esperanto</option> <option value="eo">Esperanto</option>
<option value="et">Estonian</option> <option value="et">Estonian</option>
<option value="fo">Faroese</option> <option value="fo">Faroese</option>
<option value="fa">Farsi</option>
<option value="fi">Finnish</option> <option value="fi">Finnish</option>
<option value="fr">French</option> <option value="fr">French</option>
<option value="gl">Galician</option> <option value="gl">Galician</option>

Loading…
Cancel
Save