cs translation update + pseudolocalization
This commit is contained in:
parent
f47240483c
commit
053eb0aa85
|
@ -696,6 +696,9 @@ cs:
|
|||
7_days_ago: "Před 7 dny"
|
||||
30_days_ago: "Před 30 dny"
|
||||
|
||||
commits:
|
||||
latest_changes: "Poslední změny"
|
||||
|
||||
flags:
|
||||
title: "Nahlášení"
|
||||
old: "Staré"
|
||||
|
@ -715,6 +718,7 @@ cs:
|
|||
preview: "náhled"
|
||||
undo_preview: "zrušit náhled"
|
||||
save: "Uložit"
|
||||
new: "Nový"
|
||||
delete: "Smazat"
|
||||
delete_confirm: "Smazat toto přizpůsobení?"
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ pseudo:
|
|||
share:
|
||||
topic: ! '[[ šĥářé á łíɳǩ ťó ťĥíš ťóƿíč ]]'
|
||||
post: ! '[[ šĥářé á łíɳǩ ťó ťĥíš ƿóšť ]]'
|
||||
close: ! '[[ čłóšé ]]'
|
||||
edit: ! '[[ éďíť ťĥé ťíťłé áɳď čáťéǧóřý óƒ ťĥíš ťóƿíč ]]'
|
||||
not_implemented: ! '[[ Ťĥáť ƒéáťůřé ĥášɳ''ť ƀééɳ íɱƿłéɱéɳťéď ýéť, šóřřý! ]]'
|
||||
no_value: ! '[[ Ѝó ]]'
|
||||
|
@ -21,6 +22,7 @@ pseudo:
|
|||
you: ! '[[ Ýóů ]]'
|
||||
ok: ! '[[ óǩ ]]'
|
||||
or: ! '[[ óř ]]'
|
||||
now: ! '[[ ʲůšť ɳóŵ ]]'
|
||||
suggested_topics:
|
||||
title: ! '[[ Šůǧǧéšťéď Ťóƿíčš ]]'
|
||||
bookmarks:
|
||||
|
@ -52,6 +54,8 @@ pseudo:
|
|||
change_password: ! '[[ čĥáɳǧé ]]'
|
||||
invited_by: ! '[[ Íɳνíťéď Ɓý ]]'
|
||||
trust_level: ! '[[ Ťřůšť Łéνéł ]]'
|
||||
external_links_in_new_tab: ! '[[ Óƿéɳ áłł éхťéřɳáł łíɳǩš íɳ á ɳéŵ ťáƀ ]]'
|
||||
enable_quoting: ! '[[ Éɳáƀłé ƣůóťé řéƿłý ƒóř ĥíǧĥłíǧĥťéď ťéхť ]]'
|
||||
change_username:
|
||||
action: ! '[[ čĥáɳǧé ]]'
|
||||
title: ! '[[ Čĥáɳǧé Ůšéřɳáɱé ]]'
|
||||
|
@ -85,7 +89,9 @@ pseudo:
|
|||
ok: ! '[[ Ýóůř ɳáɱé łóóǩš ǧóóď. ]]'
|
||||
username:
|
||||
title: ! '[[ Ůšéřɳáɱé ]]'
|
||||
instructions: ! '[[ Рéóƿłé čáɳ ɱéɳťíóɳ ýóů áš @{{username}}. ]]'
|
||||
instructions: ! '[[ Ϻůšť ƀé ůɳíƣůé, ɳó šƿáčéš. Рéóƿłé čáɳ ɱéɳťíóɳ ýóů áš @ůšéřɳáɱé.
|
||||
]]'
|
||||
short_instructions: ! '[[ Рéóƿłé čáɳ ɱéɳťíóɳ ýóů áš @{{username}}. ]]'
|
||||
available: ! '[[ Ýóůř ůšéřɳáɱé íš áνáíłáƀłé. ]]'
|
||||
global_match: ! '[[ Éɱáíł ɱáťčĥéš ťĥé řéǧíšťéřéď ůšéřɳáɱé. ]]'
|
||||
global_mismatch: ! '[[ Áłřéáďý řéǧíšťéřéď. Ťřý {{suggestion}}? ]]'
|
||||
|
@ -94,6 +100,8 @@ pseudo:
|
|||
too_long: ! '[[ Ýóůř ůšéřɳáɱé íš ťóó łóɳǧ. ]]'
|
||||
checking: ! '[[ Čĥéčǩíɳǧ ůšéřɳáɱé áνáíłáƀíłíťý... ]]'
|
||||
enter_email: ! '[[ Ůšéřɳáɱé ƒóůɳď. Éɳťéř ɱáťčĥíɳǧ éɱáíł. ]]'
|
||||
password_confirmation:
|
||||
title: ! '[[ Рáššŵóřď Áǧáíɳ ]]'
|
||||
last_posted: ! '[[ Łášť Рóšť ]]'
|
||||
last_emailed: ! '[[ Łášť Éɱáíłéď ]]'
|
||||
last_seen: ! '[[ Łášť Šééɳ ]]'
|
||||
|
@ -250,6 +258,8 @@ pseudo:
|
|||
message: ! '[[ Áůťĥéɳťíčáťíɳǧ ŵíťĥ Рéřšóɳá (ɱáǩé šůřé ƿóƿ ůƿ ƀłóčǩéřš ářé
|
||||
ɳóť éɳáƀłéď) ]]'
|
||||
composer:
|
||||
posting_not_on_topic: ! '[[ Ýóů ářé řéƿłýíɳǧ ťó ťĥé ťóƿíč "{{title}}", ƀůť ýóů
|
||||
ářé čůřřéɳťłý νíéŵíɳǧ á ď탃éřéɳť ťóƿíč. ]]'
|
||||
saving_draft_tip: ! '[[ šáνíɳǧ ]]'
|
||||
saved_draft_tip: ! '[[ šáνéď ]]'
|
||||
saved_local_draft_tip: ! '[[ šáνéď łóčáłłý ]]'
|
||||
|
@ -257,7 +267,10 @@ pseudo:
|
|||
at_least: ! '[[ éɳťéř áť łéášť {{n}} čĥářáčťéřš ]]'
|
||||
more: ! '[[ {{n}} ťó ǧó... ]]'
|
||||
save_edit: ! '[[ Šáνé Éďíť ]]'
|
||||
reply_original: ! '[[ Řéƿłý óɳ Óříǧíɳáł Ťóƿíč ]]'
|
||||
reply_here: ! '[[ Řéƿłý Ĥéřé ]]'
|
||||
reply: ! '[[ Řéƿłý ]]'
|
||||
cancel: ! '[[ Čáɳčéł ]]'
|
||||
create_topic: ! '[[ Čřéáťé Ťóƿíč ]]'
|
||||
create_pm: ! '[[ Čřéáťé Рříνáťé Ϻéššáǧé ]]'
|
||||
users_placeholder: ! '[[ Áďď á ůšéř ]]'
|
||||
|
@ -273,7 +286,6 @@ pseudo:
|
|||
uploading: ! '[[ Ůƿłóáďíɳǧ... ]]'
|
||||
show_preview: ! '[[ šĥóŵ ƿřéνíéŵ &řáƣůó; ]]'
|
||||
hide_preview: ! '[[ &łáƣůó; ĥíďé ƿřéνíéŵ ]]'
|
||||
quote_title: ! '[[ Ɓłóčǩƣůóťé ]]'
|
||||
bold_title: ! '[[ Šťřóɳǧ ]]'
|
||||
bold_text: ! '[[ šťřóɳǧ ťéхť ]]'
|
||||
italic_title: ! '[[ Éɱƿĥášíš ]]'
|
||||
|
@ -282,6 +294,7 @@ pseudo:
|
|||
link_description: ! '[[ éɳťéř łíɳǩ ďéščříƿťíóɳ ĥéřé ]]'
|
||||
link_dialog_title: ! '[[ Íɳšéřť Ĥýƿéřłíɳǩ ]]'
|
||||
link_optional_text: ! '[[ óƿťíóɳáł ťíťłé ]]'
|
||||
quote_title: ! '[[ Ɓłóčǩƣůóťé ]]'
|
||||
quote_text: ! '[[ Ɓłóčǩƣůóťé ]]'
|
||||
code_title: ! '[[ Čóďé Šáɱƿłé ]]'
|
||||
code_text: ! '[[ éɳťéř čóďé ĥéřé ]]'
|
||||
|
@ -518,7 +531,9 @@ pseudo:
|
|||
post:
|
||||
reply: ! '[[ Řéƿłýíɳǧ ťó {{link}} ƀý {{replyAvatar}} {{username}} ]]'
|
||||
reply_topic: ! '[[ Řéƿłý ťó {{link}} ]]'
|
||||
edit: ! '[[ Éďíť {{link}} ]]'
|
||||
quote_reply: ! '[[ ƣůóťé řéƿłý ]]'
|
||||
edit: ! '[[ Éďíťíɳǧ {{link}} ƀý {{replyAvatar}} {{username}} ]]'
|
||||
post_number: ! '[[ ƿóšť {{number}} ]]'
|
||||
in_reply_to: ! '[[ íɳ řéƿłý ťó ]]'
|
||||
reply_as_new_topic: ! '[[ Řéƿłý áš ɳéŵ Ťóƿíč ]]'
|
||||
continue_discussion: ! '[[ Čóɳťíɳůíɳǧ ťĥé ďíščůššíóɳ ƒřóɱ {{postLink}}: ]]'
|
||||
|
@ -624,6 +639,7 @@ pseudo:
|
|||
top_contributors: ! '[[ Рářťíčíƿáɳťš ]]'
|
||||
category_title: ! '[[ Čáťéǧóřý ]]'
|
||||
history: ! '[[ Ĥíšťóřý ]]'
|
||||
changed_by: ! '[[ ƀý {{author}} ]]'
|
||||
categories_list: ! '[[ Čáťéǧóříéš Łíšť ]]'
|
||||
filters:
|
||||
popular:
|
||||
|
@ -674,6 +690,16 @@ pseudo:
|
|||
please_upgrade: ! '[[ Рłéášé ůƿǧřáďé! ]]'
|
||||
latest_version: ! '[[ Łáťéšť νéřšíóɳ ]]'
|
||||
update_often: ! '[[ Рłéášé ůƿďáťé óƒťéɳ! ]]'
|
||||
reports:
|
||||
today: ! '[[ Ťóďáý ]]'
|
||||
yesterday: ! '[[ Ýéšťéřďáý ]]'
|
||||
last_7_days: ! '[[ Łášť 7 Ďáýš ]]'
|
||||
last_30_days: ! '[[ Łášť 30 Ďáýš ]]'
|
||||
all_time: ! '[[ Áłł Ťíɱé ]]'
|
||||
7_days_ago: ! '[[ 7 Ďáýš Áǧó ]]'
|
||||
30_days_ago: ! '[[ 30 Ďáýš Áǧó ]]'
|
||||
commits:
|
||||
latest_changes: ! '[[ Łáťéšť čĥáɳǧéš ]]'
|
||||
flags:
|
||||
title: ! '[[ Ƒłáǧš ]]'
|
||||
old: ! '[[ Ółď ]]'
|
||||
|
@ -693,6 +719,7 @@ pseudo:
|
|||
preview: ! '[[ ƿřéνíéŵ ]]'
|
||||
undo_preview: ! '[[ ůɳďó ƿřéνíéŵ ]]'
|
||||
save: ! '[[ Šáνé ]]'
|
||||
new: ! '[[ Ѝéŵ ]]'
|
||||
delete: ! '[[ Ďéłéťé ]]'
|
||||
delete_confirm: ! '[[ Ďéłéťé ťĥíš čůšťóɱížáťíóɳ? ]]'
|
||||
email_logs:
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
---
|
||||
pseudo:
|
||||
time:
|
||||
formats:
|
||||
short: ! '%m-%d-%Y'
|
||||
title: ! '[[ Ďíščóůřšé ]]'
|
||||
topics: ! '[[ Ťóƿíčš ]]'
|
||||
loading: ! '[[ Łóáďíɳǧ ]]'
|
||||
|
@ -191,7 +194,8 @@ pseudo:
|
|||
off_topic:
|
||||
title: ! '[[ Óƒƒ-Ťóƿíč ]]'
|
||||
description: ! '[[ Ťĥíš ƿóšť íš řáďíčáłłý óƒƒ-ťóƿíč íɳ ťĥé čůřřéɳť čóɳνéřšáťíóɳ,
|
||||
áɳď šĥóůłď ƿřóƀáƀłý ƀé ɱóνéď ťó á ď탃éřéɳť ťóƿíč. ]]'
|
||||
áɳď šĥóůłď ƿřóƀáƀłý ƀé ɱóνéď ťó á ď탃éřéɳť ťóƿíč. ̓ ťĥíš íš á ťóƿíč, ƿéřĥáƿš
|
||||
íť ďóéš ɳóť ƀéłóɳǧ ĥéřé. ]]'
|
||||
long_form: ! '[[ ƒłáǧǧéď ťĥíš áš óƒƒ-ťóƿíč ]]'
|
||||
spam:
|
||||
title: ! '[[ Šƿáɱ ]]'
|
||||
|
@ -242,9 +246,29 @@ pseudo:
|
|||
description: ! '[[ Ýóů ĥáνé ƀééɳ řé-šůƀščříƀéď. ]]'
|
||||
reports:
|
||||
visits:
|
||||
title: ! '[[ Ůšéřš Ѷíšíťš ƀý Ďáý ]]'
|
||||
title: ! '[[ Ůšéř Ѷíšíťš ]]'
|
||||
xaxis: ! '[[ Ďáý ]]'
|
||||
yaxis: ! '[[ Ѷíšíťš ]]'
|
||||
yaxis: ! '[[ Ѝůɱƀéř óƒ νíšíťš ]]'
|
||||
signups:
|
||||
title: ! '[[ Ѝéŵ Ůšéřš ]]'
|
||||
xaxis: ! '[[ Ďáý ]]'
|
||||
yaxis: ! '[[ Ѝůɱƀéř óƒ ɳéŵ ůšéřš ]]'
|
||||
topics:
|
||||
title: ! '[[ Ѝéŵ Ťóƿíčš ]]'
|
||||
xaxis: ! '[[ Ďáý ]]'
|
||||
yaxis: ! '[[ Ѝůɱƀéř óƒ ɳéŵ ťóƿíčš ]]'
|
||||
posts:
|
||||
title: ! '[[ Ѝéŵ Рóšťš ]]'
|
||||
xaxis: ! '[[ Ďáý ]]'
|
||||
yaxis: ! '[[ Ѝůɱƀéř óƒ ɳéŵ ƿóšťš ]]'
|
||||
total_users:
|
||||
title: ! '[[ Ťóťáł Ůšéřš ]]'
|
||||
xaxis: ! '[[ Ďáý ]]'
|
||||
yaxis: ! '[[ Ťóťáł ɳůɱƀéř óƒ ůšéřš ]]'
|
||||
flags:
|
||||
title: ! '[[ Ƒłáǧš ]]'
|
||||
xaxis: ! '[[ Ďáý ]]'
|
||||
yaxis: ! '[[ Ѝůɱƀéř óƒ ƒłáǧš ]]'
|
||||
site_settings:
|
||||
default_locale: ! '[[ Ťĥé ďéƒáůłť łáɳǧůáǧé óƒ ťĥíš Ďíščóůřšé íɳšťáɳčé (ÍŠÓ 639-1
|
||||
Čóďé) ]]'
|
||||
|
@ -297,9 +321,9 @@ pseudo:
|
|||
ƀéƒóřé řółłíɳǧ ůƿ íɳťó á čóůɳť ]]'
|
||||
onebox_max_chars: ! '[[ Ϻáхíɱůɱ čĥářáčťéřš á óɳéƀóх ŵíłł íɱƿóřť ƒřóɱ áɳ éхťéřɳáł
|
||||
ŵéƀšíťé íɳťó ťĥé ƿóšť ]]'
|
||||
logo_url: ! '[[ Ťĥé łóǧó ƒóř ýóůř šíťé éǧ: ĥťťƿ://хýž.čóɱ/х.ƿɳǧ ]]'
|
||||
logo_url: ! '[[ Ťĥé łóǧó ƒóř ýóůř šíťé éǧ: ĥťťƿ://éхáɱƿłé.čóɱ/łóǧó.ƿɳǧ ]]'
|
||||
logo_small_url: ! '[[ Ťĥé šɱáłł łóǧó ƒóř ýóůř šíťé ůšéď ŵĥéɳ ščřółłíɳǧ ďóŵɳ óɳ
|
||||
ťóƿíčš éǧ: ĥťťƿ://хýž.čóɱ/х-šɱáłł.ƿɳǧ ]]'
|
||||
ťóƿíčš éǧ: ĥťťƿ://éхáɱƿłé.čóɱ/łóǧó-šɱáłł.ƿɳǧ ]]'
|
||||
favicon_url: ! '[[ Á ƒáνíčóɳ ƒóř ýóůř šíťé, šéé ĥťťƿ://éɳ.ŵíǩíƿéďíá.óřǧ/ŵíǩí/Ƒáνíčóɳ
|
||||
]]'
|
||||
notification_email: ! '[[ Ťĥé řéťůřɳ éɱáíł áďďřéšš ůšéď ŵĥéɳ šéɳďíɳǧ šýšťéɱ éɱáíłš
|
||||
|
@ -494,7 +518,8 @@ pseudo:
|
|||
]]'
|
||||
closed_disabled: ! '[[ Ťĥíš ťóƿíč íš ɳóŵ óƿéɳéď. Ѝéŵ řéƿłíéš ářé áłłóŵéď. ]]'
|
||||
pinned_enabled: ! '[[ Ťĥíš ťóƿíč íš ɳóŵ ƿíɳɳéď. Íť ŵíłł áƿƿéář áť ťĥé ťóƿ óƒ íťš
|
||||
čáťéǧóřý. ]]'
|
||||
čáťéǧóřý ůɳťíł íť íš éíťĥéř ůɳƿíɳɳéď ƀý á ɱóďéřáťóř, óř čłéářéď ƀý éáčĥ ůšéř
|
||||
ůšíɳǧ ťĥé Čłéář Рíɳ ƀůťťóɳ. ]]'
|
||||
pinned_disabled: ! '[[ Ťĥíš ťóƿíč íš ɳóŵ ůɳƿíɳɳéď. Íť ŵíłł ɳó łóɳǧéř áƿƿéář áť
|
||||
ťĥé ťóƿ óƒ íťš čáťéǧóřý. ]]'
|
||||
visible_enabled: ! '[[ Ťĥíš ťóƿíč íš ɳóŵ νíšíƀłé. Íť ŵíłł ƀé ďíšƿłáýéď íɳ ťóƿíč
|
||||
|
|
|
@ -35,14 +35,25 @@ def transform(p)
|
|||
end
|
||||
end
|
||||
|
||||
def process_file(basename, locale)
|
||||
def replace(hash, hash2, dotted_path)
|
||||
parts = dotted_path.split '.', 2
|
||||
match = hash[parts[0]]
|
||||
if !parts[1] or match.nil?
|
||||
return match
|
||||
else
|
||||
return dig(match, parts[1])
|
||||
end
|
||||
end
|
||||
|
||||
def process_file(basename, locale, &block)
|
||||
strings = YAML.load_file("./config/locales/#{basename}.#{locale}.yml")
|
||||
strings = transform(strings)
|
||||
strings = Hash["pseudo" => strings[locale]]
|
||||
new_strings = transform(strings)
|
||||
new_strings = Hash["pseudo" => new_strings[locale]]
|
||||
yield new_strings, strings if block_given?
|
||||
File.open("./config/locales/#{basename}.pseudo.yml", 'w+' ) do |f|
|
||||
f.puts strings.to_yaml
|
||||
f.puts new_strings.to_yaml
|
||||
end
|
||||
end
|
||||
|
||||
process_file("client", "en")
|
||||
process_file("server", "en")
|
||||
process_file("server", "en") { |new,orig| new["pseudo"]["time"] = orig["en"]["time"] }
|
||||
|
|
Loading…
Reference in New Issue