From 724f3e9abeac3aefad50ef28f67acbe114226d26 Mon Sep 17 00:00:00 2001 From: Joe Germuska Date: Fri, 24 Jan 2014 14:41:46 -0600 Subject: [PATCH] add fa.js (Farsi translations) --- README.markdown | 77 +++++++++++++++++----------- source/js/Core/Language/locale/fa.js | 35 +++++++++++++ website/templates/_make.html | 1 + 3 files changed, 82 insertions(+), 31 deletions(-) create mode 100644 source/js/Core/Language/locale/fa.js diff --git a/README.markdown b/README.markdown index 13457e5..6ae6541 100644 --- a/README.markdown +++ b/README.markdown @@ -136,46 +136,58 @@ Localization *default is `en` English* Languages available: * `af` *Afrikaans* -* `ar` *Arabic (beta)* +* `ar` *Arabic* +* `hy` *Armenian* +* `eu` *Basque* * `bg` *Bulgarian* * `ca` *Catalan* +* `zh-ch` *Chinese* * `cz` *Czech* * `da` *Danish* -* `de` *German / Deutsch* -* `el` *Greek* +* `nl` *Dutch* * `en` *English* -* `es` *Spanish* -* `eu` *Basque/ Euskara* -* `fi` *Finnish* +* `en-24hr` *English (24-hour time)* +* `eo` *Esperanto* +* `et` *Estonian* * `fo` *Faroese* +* `fa` *Farsi* +* `fi` *Finnish* * `fr` *French* * `gl` *Galician* +* `ka` *Georgian* +* `de` *German / Deutsch* +* `el` *Greek* +* `he` *Hebrew* * `hu` *Hungarian* -* `hy` *Armenian* -* `id` *Indonesian* * `is` *Icelandic* +* `id` *Indonesian* * `it` *Italian* -* `iw` *Hebrew (beta)* * `ja` *Japanese* -* `ka` *Georgian* * `ko` *Korean* * `lv` *Latvian* -* `nl` *Dutch* +* `lt` *Lithuanian* +* `lb` *Luxembourgish* +* `ms` *Malay* +* `ne` *Nepali* * `no` *Norwegian* * `pl` *Polish* -* `pt-br` *Brazilian Portuguese* * `pt` *Portuguese* +* `pt-br` *Portuguese (Brazilian)* +* `rm` *Romansh* * `ru` *Russian* +* `sr-cy` *Serbian - Cyrillic* +* `sr` *Serbian - Latin* +* `si` *Sinhalese* * `sk` *Slovak* * `sl` *Slovenian* -* `sr-cy` *Serbian (Cyrillic)* -* `sr` *Serbian (Latin)* +* `es` *Spanish* * `sv` *Swedish* -* `ta` *Tamil* * `tl` *Tagalog* -* `tr` *Turkish* -* `zh-cn` *Chinese* +* `ta` *Tamil* * `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) @@ -227,20 +239,23 @@ Due to recent changes to the Google Maps API, you need a [API Key](https://devel ###Font Options `font:` -* `Arvo-PTSans` -* `Merriweather-NewsCycle` -* `PoiretOne-Molengo` -* `PTSerif-PTSans` -* `DroidSerif-DroidSans` -* `Lekton-Molengo` -* `NixieOne-Ledger` -* `AbrilFatface-Average` -* `PlayfairDisplay-Muli` -* `Rancho-Gudea` -* `Bevan-PotanoSans` -* `BreeSerif-OpenSans` -* `SansitaOne-Kameron` -* `Pacifico-Arimo` +* `AbrilFatface-Average` *Abril Fatface & Average* +* `Arvo-PTSans` *Arvo & PT Sans* +* `Bevan-PotanoSans` *Bevan & Potano Sans* +* `BreeSerif-OpenSans` *Bree Serif & Open Sans* +* `DroidSerif-DroidSans` *Droid Serif & Droid Sans* +* `Georgia-Helvetica` *Georgia & Helvetica Neue* +* `Lekton-Molengo` *Lekton & Molengo* +* `Merriweather-NewsCycle` *Merriweather & News Cycle* +* `NewsCycle-Merriweather` *News Cycle & Merriweather* +* `NixieOne-Ledger` *Nixie One & Ledger* +* `Pacifico-Arimo` *Pacifico & Arimo* +* `PlayfairDisplay-Muli` *Playfair Display & Muli* +* `PoiretOne-Molengo` *Poiret One & Molengo* +* `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 ####Font Combination Preview: diff --git a/source/js/Core/Language/locale/fa.js b/source/js/Core/Language/locale/fa.js new file mode 100644 index 0000000..33cc1cc --- /dev/null +++ b/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'
mmm d',' yyyy''" + }, + messages: { + loading_timeline: "بارگذاری، شکیبا باشید...", + return_to_title: "ابتدای زمانبندی", + expand_timeline: "بزرگنمایی", + contract_timeline: "کوچکنمایی", + wikipedia: "از ویکی پدیا، دانشنامه آزاد", + loading_content: "بارگذاری", + loading: "بارگذاری" + } + } +} \ No newline at end of file diff --git a/website/templates/_make.html b/website/templates/_make.html index 9f9f395..ee9192b 100644 --- a/website/templates/_make.html +++ b/website/templates/_make.html @@ -85,6 +85,7 @@ +