Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (212 Bytes)
Defect #5608
ยป locales_update.rb
Jean-Baptiste Barth
, 2010-09-02 12:48
#!/usr/bin/env ruby
Dir
.
glob
(
"config/locales/*.yml"
)
do
|
locale
|
puts
"Fixing
#{
locale
}
"
content
=
File
.
read
(
locale
)
File
.
open
(
locale
,
'w'
)
do
|
f
|
f
.
write
content
.
gsub
(
/\{\{(.*?)}}/
,
'%{\1}'
)
end
end
(1-1/1)
Loading...