Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
5cbd4038ed
Fix rubocop style issues
2015-02-20 08:56:16 +00:00
Tom Hughes
baf10cd392
Fix rubocop lint issues
2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
34e3e51456
Cleanup trailing whitespace
2015-02-20 08:56:16 +00:00
Tom Hughes
c9fa49c994
Update to rails 3
2011-11-14 09:42:40 +00:00
Ævar Arnfjörð Bjarmason
a0905290b7
Translatewiki URLs changed. Adjust script to match
2009-10-01 13:41:51 +00:00
Ævar Arnfjörð Bjarmason
95c8b2a01d
comment out dupe purging debug message
2009-09-30 17:43:17 +00:00
Ævar Arnfjörð Bjarmason
b2a1abf6e9
compile error in previous commit
2009-09-30 17:43:02 +00:00
Ævar Arnfjörð Bjarmason
289c1c3cd9
--cache option
2009-09-30 17:42:06 +00:00
Ævar Arnfjörð Bjarmason
ab878d4844
There are a bunch of keys on Translatewiki that are equivalent to
...
English for some reason. Probably because they were there at import
time. Nuke them.
2009-09-30 11:04:16 +00:00
Tom Hughes
69b586a8f4
Add script to update config/languages.yml from translatewiki language list.
2009-09-30 08:49:28 +00:00
Tom Hughes
d13c0e5bb8
Rename reload_languages to reload-languages for consistency.
2009-09-30 08:49:00 +00:00
Ævar Arnfjörð Bjarmason
d9c17e930d
* Reconstruct option
...
* I hate File::Basename and it hates absolute paths. I'm using my evil hack again
2009-09-29 13:28:23 +00:00
Ævar Arnfjörð Bjarmason
1355455f83
--locales-dir is now config/locales by default
2009-09-29 09:00:53 +00:00
Ævar Arnfjörð Bjarmason
f59967a894
more SYNOPSIS instructions
2009-09-28 20:52:53 +00:00
Ævar Arnfjörð Bjarmason
b479b0c2b6
Actualy having autogenerated timestamps at the top of files which are
...
under version controll is a pretty lousy idea now that I think of it..
2009-09-28 20:43:48 +00:00
Ævar Arnfjörð Bjarmason
ea970889e5
Report on download progress
2009-09-28 20:27:50 +00:00
Ævar Arnfjörð Bjarmason
5524765d17
--only-new option
...
Don't spew so much debug output
2009-09-28 20:25:19 +00:00
Ævar Arnfjörð Bjarmason
134ff60ab7
* Add more keys from the optional list that we don't want to ignor
...
* Don't delete a singular form if the plural form exists in the source language (en)
* Don't nuke site.key.table.entry singularls when the source language (en) has an array
2009-09-28 20:17:36 +00:00
Ævar Arnfjörð Bjarmason
1facda11d6
A hacky in-process script for merging translations from Translatewiki
...
while working around all the bugs in #2305
2009-09-28 19:06:34 +00:00
Ævar Arnfjörð Bjarmason
088bd1dcb2
Deal with values which are arrays, before and after:
...
avar@aoeu:~/src/osm/sites/rails_port/config/locales$ perl ../../script/locale/diff --dump-flat de.yml|egrep "Nähe|Uni"
message.inbox.people_mapping_nearby: Mappern in deiner Nähe
message.outbox.people_mapping_nearby: Mappern in deiner Nähe
- "Universit\xC3\xA4t"
user.friend_map.nearby mapper: "Mapper in der Nähe: [[nearby_user]]"
user.view.nearby users: "Benutzer in der Nähe:"
user.view.no nearby users: Es gibt bisher keine Benutzer, die einen Standort in deiner Nähe angegeben haben.
avar@aoeu:~/src/osm/sites/rails_port/config/locales$ perl ../../script/locale/diff --dump-flat de.yml|egrep "Nähe|Uni"
message.inbox.people_mapping_nearby: Mappern in deiner Nähe
message.outbox.people_mapping_nearby: Mappern in deiner Nähe
- Universität
user.friend_map.nearby mapper: "Mapper in der Nähe: [[nearby_user]]"
user.view.nearby users: "Benutzer in der Nähe:"
user.view.no nearby users: Es gibt bisher keine Benutzer, die einen Standort in deiner Nähe angegeben haben.
2009-09-26 20:03:52 +00:00
Ævar Arnfjörð Bjarmason
2b2e754b3d
Quick hack to add --dump-flat to get a human-readable flat version of the hash
2009-09-23 20:36:09 +00:00
Ævar Arnfjörð Bjarmason
88060d443e
oops, wrong e-mail address
2009-09-07 19:29:25 +00:00
Tom Hughes
73340e1780
Add support for reloading the language table.
2009-09-03 21:55:42 +00:00
Ævar Arnfjörð Bjarmason
e2abf1254b
* Turn the hardcoded #<%= changeset.id %> into t('msg', :id =>
...
changeset.id). Some languages may have a different numeric
indicator than the ASCII pound symbol
* Instead of including a column on :user/edits with a "more" link
make the changeset ID link to the changeset page.
2009-07-29 11:05:17 +00:00
Ævar Arnfjörð Bjarmason
dc9e1da15b
Ignore geocoder.search_osm_namefinder.* messages that I don't intend to translate
2009-07-28 11:22:29 +00:00
Tom Hughes
ea45f3b71c
Make sure we always call fileparse() in scalar context.
2009-07-21 12:20:02 +00:00
Tom Hughes
e82496a9e5
Use File::Basename instead of having our own half-arsed version.
2009-07-21 09:51:33 +00:00
Ævar Arnfjörð Bjarmason
8d76bf978a
Use LoadFile(*DATA) to load the __DATA__ section as YAML
2009-06-29 01:42:40 +00:00
Ævar Arnfjörð Bjarmason
df07980b15
Add entries to is: blacklist
2009-06-29 01:41:33 +00:00
Ævar Arnfjörð Bjarmason
12f78fc254
Add browse.relation_member.entry to the blacklist
2009-06-28 18:52:41 +00:00
Ævar Arnfjörð Bjarmason
d8889d5ef6
Only report something in --untranslated-values if it exists in the
...
target translation. Users should use --keys to check what doesn't
exist in the target.
Add a blacklist for Icelandic at the end of the file.
2009-06-26 18:51:50 +00:00
Ævar Arnfjörð Bjarmason
b7e93a834c
Update synopsis to include --untranslated-values
2009-06-26 10:48:30 +00:00
Ævar Arnfjörð Bjarmason
2ec4555edf
Add a --validate-variables option to check that interpolated Ruby i18n
...
variables (C<{{foo}}> and C<[[foo]]>) are equivalent in the two
provided files.
Depend on 5.10 because I'm lazy and want to use smart-matching
2009-06-25 12:48:40 +00:00
Jonas Krückel
592ffc0253
removed anon_edits link from the de blacklist
2009-06-23 14:58:52 +00:00
Jonas Krückel
043ed6449c
removed urls (they need to point to a translated version (maybe still to be done) too)
...
added new string
2009-06-23 14:54:26 +00:00
Jonas Krückel
b6449d246b
removed license_url from blacklist
...
added de blacklist
2009-06-22 19:28:29 +00:00
Ævar Arnfjörð Bjarmason
abf35182a7
Remove debugging code
2009-06-22 19:07:03 +00:00
Ævar Arnfjörð Bjarmason
b26b6c9478
Add some more stuff to the translation blacklist
2009-06-22 18:43:10 +00:00
Ævar Arnfjörð Bjarmason
570491d8e2
sort untranslated_keys output again
2009-06-22 18:40:35 +00:00
Ævar Arnfjörð Bjarmason
ca911e928e
Support blacklists/whitelists for --untranslated-values output
2009-06-22 18:32:01 +00:00
Ævar Arnfjörð Bjarmason
2ad330d642
Change option names and improve POD
2009-06-22 16:32:58 +00:00
Ævar Arnfjörð Bjarmason
9721a9a96e
Add --untranslated-values to spot things that haven't been translated
2009-06-22 16:27:40 +00:00
Ævar Arnfjörð Bjarmason
d3dd0229cb
Don't use Data::Walk and instead construct a flattened list of hash
...
values using a custom recursive walker (stolen from yaml2po).
This makes reading the output a whole lot easier.
2009-06-22 16:05:28 +00:00
Thomas Wood
9f9efa7d45
Catch creation of en.po
2009-06-05 22:38:04 +00:00
Thomas Wood
902a44e630
Add bulk yaml production to yaml2po
2009-06-05 22:27:21 +00:00
Thomas Wood
bb214eebc2
Add the counterpart script, po2yaml, and use strctxt rather than #: for identifying strings.
2009-06-05 19:03:39 +00:00
Tom Hughes
c153de287a
Adjusted for new location of script.
2009-06-04 21:53:49 +00:00
Štefan Baebler
cd9bdcf28a
added svn:executable property
2009-06-04 05:38:26 +00:00