Skip to content

Commit

Permalink
more auto-translation
Browse files Browse the repository at this point in the history
  • Loading branch information
yhara committed Feb 22, 2011
1 parent 7d1c4f3 commit 8f434fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/translations_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def pre_translate(txt)
txt.gsub(/起票者: /, "Added by: ").
gsub(/ステータス: /, "Status: ").
gsub(/優先度: /, "Priority: ").
gsub(/カテゴリ: /, "Category: ").
gsub(/チケット #(\d+) が更新されました。/){
"Issue ##{$1} is updated"
}.
Expand All @@ -13,6 +14,9 @@ def pre_translate(txt)
}.
gsub(/進捗 % (\d+)から(\d+)に変更/){
"% Done changed from #{$1} to #{$2}"
}.
gsub(/(\d+)年(\d+)月(\d+)日(.曜日)?/){
format "%04d-%02d-%02d ", $1, $2, $3
}
end
end

0 comments on commit 8f434fc

Please sign in to comment.