Add: multi-lang relative time
This commit is contained in:
parent
0dead93606
commit
b50a55cce7
|
@ -37,7 +37,6 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var $t = $.timeago;
|
var $t = $.timeago;
|
||||||
|
|
||||||
$.extend($.timeago, {
|
$.extend($.timeago, {
|
||||||
settings: {
|
settings: {
|
||||||
refreshMillis: 60000,
|
refreshMillis: 60000,
|
||||||
|
@ -47,22 +46,22 @@
|
||||||
cutoff: 0,
|
cutoff: 0,
|
||||||
autoDispose: true,
|
autoDispose: true,
|
||||||
strings: {
|
strings: {
|
||||||
prefixAgo: null,
|
prefixAgo: lang.lang_time_prefixAgo,
|
||||||
prefixFromNow: "今から",
|
prefixFromNow: lang.lang_time_prefixFromNow,
|
||||||
suffixAgo: "",
|
suffixAgo: lang.lang_time_suffixAgo,
|
||||||
suffixFromNow: "",
|
suffixFromNow: lang.lang_time_suffixFromNow,
|
||||||
inPast: '',
|
inPast: lang.lang_time_inPast,
|
||||||
seconds: "%d秒前",
|
seconds: lang.lang_time_seconds,
|
||||||
minute: "1分前",
|
minute: lang.lang_time_minute,
|
||||||
minutes: "%d分前",
|
minutes: lang.lang_time_minutes,
|
||||||
hour: "1時間前",
|
hour: lang.lang_time_hour,
|
||||||
hours: "%d時間前",
|
hours: lang.lang_time_hours,
|
||||||
day: "昨日",
|
day: lang.lang_time_day,
|
||||||
days: "%d日前",
|
days: lang.lang_time_days,
|
||||||
month: "昨月",
|
month: lang.lang_time_month,
|
||||||
months: "%dヶ月前",
|
months: lang.lang_time_months,
|
||||||
year: "去年",
|
year: lang.lang_time_year,
|
||||||
years: "%d年前",
|
years: lang.lang_time_years,
|
||||||
wordSeparator: " ",
|
wordSeparator: " ",
|
||||||
numbers: []
|
numbers: []
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,22 @@ var lang={
|
||||||
"lang_back": "Назад",
|
"lang_back": "Назад",
|
||||||
"lang_set": "Задай",
|
"lang_set": "Задай",
|
||||||
"lang_langadd": "Преведете TheDesk на други езици или проверете TheDesk на <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\"> GitHub </a>. TheDesk се нуждае от вашата помощ.",
|
"lang_langadd": "Преведете TheDesk на други езици или проверете TheDesk на <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\"> GitHub </a>. TheDesk се нуждае от вашата помощ.",
|
||||||
|
"lang_time_prefixAgo": null,
|
||||||
|
"lang_time_prefixFromNow": null,
|
||||||
|
"lang_time_suffixAgo": null,
|
||||||
|
"lang_time_suffixFromNow": null,
|
||||||
|
"lang_time_inPast": null,
|
||||||
|
"lang_time_seconds": "%d s",
|
||||||
|
"lang_time_minute": "1 m",
|
||||||
|
"lang_time_minutes": "%d m",
|
||||||
|
"lang_time_hour": "1 h",
|
||||||
|
"lang_time_hours": "%d h",
|
||||||
|
"lang_time_day": "1 d",
|
||||||
|
"lang_time_days": "%d d",
|
||||||
|
"lang_time_month": "1 month",
|
||||||
|
"lang_time_months": "%d months",
|
||||||
|
"lang_time_year": "y",
|
||||||
|
"lang_time_years": "%d y",
|
||||||
"lang_version_usever": "Не е намерена актуализация({{ver}})",
|
"lang_version_usever": "Не е намерена актуализация({{ver}})",
|
||||||
"lang_version_skipver": "Актуализацията бе игнорирана.",
|
"lang_version_skipver": "Актуализацията бе игнорирана.",
|
||||||
"lang_version_platform": "Искате ли автоматични актуализации? (За потребителите инсталирали от Microsoft Store, изберете „Не“)",
|
"lang_version_platform": "Искате ли автоматични актуализации? (За потребителите инсталирали от Microsoft Store, изберете „Не“)",
|
||||||
|
@ -60,6 +76,8 @@ var lang={
|
||||||
"lang_status_unemphas": "'s toots are not emphasized. Please reload after this action.",
|
"lang_status_unemphas": "'s toots are not emphasized. Please reload after this action.",
|
||||||
"lang_status_unendorse": "Not feature on profile",
|
"lang_status_unendorse": "Not feature on profile",
|
||||||
"lang_status_endorse": "Feature on profile",
|
"lang_status_endorse": "Feature on profile",
|
||||||
|
"lang_status_followers": "Followers",
|
||||||
|
"lang_status_active": "Last status",
|
||||||
"lang_suggest_nodata": "Please get emojis list in order to show suggestion.",
|
"lang_suggest_nodata": "Please get emojis list in order to show suggestion.",
|
||||||
"lang_usetxtbox_reply": "Reply Mode. Ctrl+Shift+C to clear.",
|
"lang_usetxtbox_reply": "Reply Mode. Ctrl+Shift+C to clear.",
|
||||||
"lang_cards_check": " check",
|
"lang_cards_check": " check",
|
||||||
|
|
|
@ -16,6 +16,22 @@ var lang={
|
||||||
"lang_back": "Zpět",
|
"lang_back": "Zpět",
|
||||||
"lang_set": "Nastavit",
|
"lang_set": "Nastavit",
|
||||||
"lang_langadd": "Přeložte TheDesk do jiných jazyků nebo opravte existující překlad na <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHubu</a> nebo <a href=\"https://translate.thedesk.top/\" target=\"_blank\">Crowdinu</a>. TheDesk potřebuje vaši pomoc.",
|
"lang_langadd": "Přeložte TheDesk do jiných jazyků nebo opravte existující překlad na <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHubu</a> nebo <a href=\"https://translate.thedesk.top/\" target=\"_blank\">Crowdinu</a>. TheDesk potřebuje vaši pomoc.",
|
||||||
|
"lang_time_prefixAgo": null,
|
||||||
|
"lang_time_prefixFromNow": null,
|
||||||
|
"lang_time_suffixAgo": null,
|
||||||
|
"lang_time_suffixFromNow": null,
|
||||||
|
"lang_time_inPast": null,
|
||||||
|
"lang_time_seconds": "%d s",
|
||||||
|
"lang_time_minute": "1 m",
|
||||||
|
"lang_time_minutes": "%d m",
|
||||||
|
"lang_time_hour": "1 h",
|
||||||
|
"lang_time_hours": "%d h",
|
||||||
|
"lang_time_day": "1 d",
|
||||||
|
"lang_time_days": "%d d",
|
||||||
|
"lang_time_month": "1 month",
|
||||||
|
"lang_time_months": "%d months",
|
||||||
|
"lang_time_year": "y",
|
||||||
|
"lang_time_years": "%d y",
|
||||||
"lang_version_usever": "Nebyla nalezena žádná aktualizace ({{ver}})",
|
"lang_version_usever": "Nebyla nalezena žádná aktualizace ({{ver}})",
|
||||||
"lang_version_skipver": "Aktualizace byla ignorována.",
|
"lang_version_skipver": "Aktualizace byla ignorována.",
|
||||||
"lang_version_platform": "Do you want auto-updates?(users installed on Microsoft Store select 'No')",
|
"lang_version_platform": "Do you want auto-updates?(users installed on Microsoft Store select 'No')",
|
||||||
|
@ -60,6 +76,8 @@ var lang={
|
||||||
"lang_status_unemphas": ": tooty tohoto uživatele nejsou zdůrazněny. Po této akci prosím obnovte stránku.",
|
"lang_status_unemphas": ": tooty tohoto uživatele nejsou zdůrazněny. Po této akci prosím obnovte stránku.",
|
||||||
"lang_status_unendorse": "Nepředstavit na profilu",
|
"lang_status_unendorse": "Nepředstavit na profilu",
|
||||||
"lang_status_endorse": "Představit na profilu",
|
"lang_status_endorse": "Představit na profilu",
|
||||||
|
"lang_status_followers": "Followers",
|
||||||
|
"lang_status_active": "Last status",
|
||||||
"lang_suggest_nodata": "Pro zobrazení návrhu prosím získejte seznam emoji.",
|
"lang_suggest_nodata": "Pro zobrazení návrhu prosím získejte seznam emoji.",
|
||||||
"lang_usetxtbox_reply": "Režim odpovězení. Pro vymazání stiskněte Ctrl+Shift+C.",
|
"lang_usetxtbox_reply": "Režim odpovězení. Pro vymazání stiskněte Ctrl+Shift+C.",
|
||||||
"lang_cards_check": " kontrolovat",
|
"lang_cards_check": " kontrolovat",
|
||||||
|
|
|
@ -16,6 +16,22 @@ var lang={
|
||||||
"lang_back": "Zurück",
|
"lang_back": "Zurück",
|
||||||
"lang_set": "Setzen",
|
"lang_set": "Setzen",
|
||||||
"lang_langadd": "Übersetzen oder korrigieren Sie TheDesk in andere Sprachen auf <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHub</a>. TheDesk benötigt Ihre Hilfe.",
|
"lang_langadd": "Übersetzen oder korrigieren Sie TheDesk in andere Sprachen auf <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHub</a>. TheDesk benötigt Ihre Hilfe.",
|
||||||
|
"lang_time_prefixAgo": null,
|
||||||
|
"lang_time_prefixFromNow": null,
|
||||||
|
"lang_time_suffixAgo": null,
|
||||||
|
"lang_time_suffixFromNow": null,
|
||||||
|
"lang_time_inPast": null,
|
||||||
|
"lang_time_seconds": "%d s",
|
||||||
|
"lang_time_minute": "1 m",
|
||||||
|
"lang_time_minutes": "%d m",
|
||||||
|
"lang_time_hour": "1 h",
|
||||||
|
"lang_time_hours": "%d h",
|
||||||
|
"lang_time_day": "1 d",
|
||||||
|
"lang_time_days": "%d d",
|
||||||
|
"lang_time_month": "1 month",
|
||||||
|
"lang_time_months": "%d months",
|
||||||
|
"lang_time_year": "y",
|
||||||
|
"lang_time_years": "%d y",
|
||||||
"lang_version_usever": "Keine Aktualisierung gefunden({{ver}})",
|
"lang_version_usever": "Keine Aktualisierung gefunden({{ver}})",
|
||||||
"lang_version_skipver": "Update wurde ignoriert.",
|
"lang_version_skipver": "Update wurde ignoriert.",
|
||||||
"lang_version_platform": "Möchten Sie automatische Updates?(Benutzer im Microsoft Store wählen 'Nein')",
|
"lang_version_platform": "Möchten Sie automatische Updates?(Benutzer im Microsoft Store wählen 'Nein')",
|
||||||
|
@ -60,6 +76,8 @@ var lang={
|
||||||
"lang_status_unemphas": "'s Tröts werden nicht hervorgehoben. Bitte laden Sie nach dieser Aktion neu.",
|
"lang_status_unemphas": "'s Tröts werden nicht hervorgehoben. Bitte laden Sie nach dieser Aktion neu.",
|
||||||
"lang_status_unendorse": "Nicht auf dem Profil zeigen",
|
"lang_status_unendorse": "Nicht auf dem Profil zeigen",
|
||||||
"lang_status_endorse": "Auf dem Profil zeigen",
|
"lang_status_endorse": "Auf dem Profil zeigen",
|
||||||
|
"lang_status_followers": "Followers",
|
||||||
|
"lang_status_active": "Last status",
|
||||||
"lang_suggest_nodata": "Please get emojis list in order to show suggestion.",
|
"lang_suggest_nodata": "Please get emojis list in order to show suggestion.",
|
||||||
"lang_usetxtbox_reply": "Antwortmodus. Strg+Umschalt+C zum Löschen.",
|
"lang_usetxtbox_reply": "Antwortmodus. Strg+Umschalt+C zum Löschen.",
|
||||||
"lang_cards_check": " überprüfen",
|
"lang_cards_check": " überprüfen",
|
||||||
|
|
|
@ -18,6 +18,23 @@ var lang = {
|
||||||
"lang_back": "Back",
|
"lang_back": "Back",
|
||||||
"lang_set": "Set",
|
"lang_set": "Set",
|
||||||
"lang_langadd": "Translate TheDesk to other languages or proofread TheDesk on <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHub</a>. TheDesk needs your help.",
|
"lang_langadd": "Translate TheDesk to other languages or proofread TheDesk on <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHub</a>. TheDesk needs your help.",
|
||||||
|
//common/time.js
|
||||||
|
"lang_time_prefixAgo": null,
|
||||||
|
"lang_time_prefixFromNow": null,
|
||||||
|
"lang_time_suffixAgo": null,
|
||||||
|
"lang_time_suffixFromNow": null,
|
||||||
|
"lang_time_inPast": null,
|
||||||
|
"lang_time_seconds": "%d s",
|
||||||
|
"lang_time_minute": "1 m",
|
||||||
|
"lang_time_minutes": "%d m",
|
||||||
|
"lang_time_hour": "1 h",
|
||||||
|
"lang_time_hours": "%d h",
|
||||||
|
"lang_time_day": "1 d",
|
||||||
|
"lang_time_days": "%d d",
|
||||||
|
"lang_time_month": "1 month",
|
||||||
|
"lang_time_months": "%d months",
|
||||||
|
"lang_time_year": "y",
|
||||||
|
"lang_time_years": "%d y",
|
||||||
//common/version.js
|
//common/version.js
|
||||||
"lang_version_usever": "No update is found({{ver}})",
|
"lang_version_usever": "No update is found({{ver}})",
|
||||||
"lang_version_skipver": "Update was ignored.",
|
"lang_version_skipver": "Update was ignored.",
|
||||||
|
@ -72,6 +89,8 @@ var lang = {
|
||||||
"lang_status_unemphas": "'s toots are not emphasized. Please reload after this action.",
|
"lang_status_unemphas": "'s toots are not emphasized. Please reload after this action.",
|
||||||
"lang_status_unendorse": "Not feature on profile",
|
"lang_status_unendorse": "Not feature on profile",
|
||||||
"lang_status_endorse": "Feature on profile",
|
"lang_status_endorse": "Feature on profile",
|
||||||
|
"lang_status_followers": "Followers",
|
||||||
|
"lang_status_active": "Last status",
|
||||||
//post/suggest.js
|
//post/suggest.js
|
||||||
"lang_suggest_nodata": "Please get emojis list in order to show suggestion.",
|
"lang_suggest_nodata": "Please get emojis list in order to show suggestion.",
|
||||||
//post/use-txtbox.js
|
//post/use-txtbox.js
|
||||||
|
|
|
@ -18,6 +18,23 @@ var lang = {
|
||||||
"lang_back": "戻る",
|
"lang_back": "戻る",
|
||||||
"lang_set": "設定",
|
"lang_set": "設定",
|
||||||
"lang_langadd": "<a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHub</a>から翻訳に参加できます。英語の校正(緊急)や他言語に翻訳していただける方を募集しております。",
|
"lang_langadd": "<a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHub</a>から翻訳に参加できます。英語の校正(緊急)や他言語に翻訳していただける方を募集しております。",
|
||||||
|
//common/time.js
|
||||||
|
"lang_time_prefixAgo": null,
|
||||||
|
"lang_time_prefixFromNow": "今から",
|
||||||
|
"lang_time_suffixAgo": "",
|
||||||
|
"lang_time_suffixFromNow": "",
|
||||||
|
"lang_time_inPast": '',
|
||||||
|
"lang_time_seconds": "%d秒前",
|
||||||
|
"lang_time_minute": "1分前",
|
||||||
|
"lang_time_minutes": "%d分前",
|
||||||
|
"lang_time_hour": "1時間前",
|
||||||
|
"lang_time_hours": "%d時間前",
|
||||||
|
"lang_time_day": "昨日",
|
||||||
|
"lang_time_days": "%d日前",
|
||||||
|
"lang_time_month": "昨月",
|
||||||
|
"lang_time_months": "%dヶ月前",
|
||||||
|
"lang_time_year": "去年",
|
||||||
|
"lang_time_years": "%d年前",
|
||||||
//common/version.js
|
//common/version.js
|
||||||
"lang_version_usever": "お使いのバージョン{{ver}}は最新です。",
|
"lang_version_usever": "お使いのバージョン{{ver}}は最新です。",
|
||||||
"lang_version_skipver": "アップデートはスキップされました。",
|
"lang_version_skipver": "アップデートはスキップされました。",
|
||||||
|
@ -72,6 +89,8 @@ var lang = {
|
||||||
"lang_status_unemphas": "を強調解除します。リロードしてください。",
|
"lang_status_unemphas": "を強調解除します。リロードしてください。",
|
||||||
"lang_status_unendorse": "紹介解除",
|
"lang_status_unendorse": "紹介解除",
|
||||||
"lang_status_endorse": "プロフで紹介する",
|
"lang_status_endorse": "プロフで紹介する",
|
||||||
|
"lang_status_followers": "フォロワー",
|
||||||
|
"lang_status_active": "最新トゥート",
|
||||||
//post/suggest.js
|
//post/suggest.js
|
||||||
"lang_suggest_nodata": "サジェストのために絵文字リストを取得してください。",
|
"lang_suggest_nodata": "サジェストのために絵文字リストを取得してください。",
|
||||||
//post/use-txtbox.js
|
//post/use-txtbox.js
|
||||||
|
|
Loading…
Reference in New Issue
Block a user