Commit graph

88 commits

Author SHA1 Message Date
Tom Hughes
703c44eeab Add spam block ACLs with the right key 2010-05-11 08:59:04 +01:00
Ævar Arnfjörð Bjarmason
3a54a20af6 Implicitly update config/wiki_pages.yml if it exists, and chmod +x
This makes:

    script/misc/update-wiki-pages

from the top-level just work.
2010-05-08 18:09:49 +00:00
Tom Hughes
dd64ba2e7e Add script to update spam block ACLs
Maintain a set of ACLs which block account creation for an IP address
which has had more than two users suspended or removed in the last 28 days.
2010-05-08 17:49:27 +01:00
Tom Hughes
68bb9b3b81 Fix statistics script to reflect changes to user model 2010-05-07 11:09:54 +01:00
Ævar Arnfjörð Bjarmason
0191549033 This script requires perl 5.10 2010-04-21 00:17:05 +00:00
Ævar Arnfjörð Bjarmason
0193b18edb Mention how to run this script with prove(1) 2010-04-21 00:16:09 +00:00
Ævar Arnfjörð Bjarmason
c377932312 Don't re-declare lexical variable 2010-04-21 00:07:54 +00:00
Ævar Arnfjörð Bjarmason
0f9c9190ee This script no longer screen-scrapes and supports >500 key/values 2010-04-21 00:04:24 +00:00
Tom Hughes
546250f60b Load wiki link data at startup and shorten some file names 2010-04-20 21:05:22 +01:00
Tom Hughes
da74fbb769 Fix wiki scraper to find tag pages as well as key pages 2010-04-20 18:48:59 +01:00
Ævar Arnfjörð Bjarmason
8eead8a870 Ticket #2245: Link from /browse/* pages to the wiki key/value pages 2010-04-20 12:55:14 +00:00
Tom Hughes
be1ea6dd43 Use TMail to parse messages so that character set conversions are
done correctly. Fixes #2461.
2009-11-16 10:48:30 +00:00
Tom Hughes
a7368d7f8a Strip trailing whitespace from lines before joining them. 2009-11-10 09:13:39 +00:00
Tom Hughes
ca0c8d2f23 Add exit statement to shut rails up. 2009-11-09 08:39:33 +00:00
Tom Hughes
e6269e25f5 Add an exit statement to avoid noise from rails. 2009-11-06 08:40:37 +00:00
Tom Hughes
23b8672bc9 Add support for processing incoming mail messages in reply to message
notifications and diary comment notifications, turning the maill messages
into reply messages through the site messaging system.
2009-11-05 23:16:20 +00:00
Tom Hughes
138a9d9764 Ignore traces which have not been inserted yet when calculating
the per-user statistics.
2009-10-15 10:09:33 +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