Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-images-generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-images-generator
Commits
17293014
Commit
17293014
authored
Apr 04, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix, web.sh with zh-CN locale seems works now
parent
ba3806a3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
LanguageConstants.rb
LanguageConstants.rb
+2
-0
MSETranslator.rb
MSETranslator.rb
+1
-1
locales/ja-JP.yml
locales/ja-JP.yml
+1
-1
locales/zh-CN.yml
locales/zh-CN.yml
+1
-1
No files found.
LanguageConstants.rb
View file @
17293014
...
...
@@ -28,6 +28,7 @@ class LanguageConstants
attr_accessor
:pendulum_effect_head
attr_accessor
:monster_effect_head
attr_accessor
:term_races
# 偷个鸡
attr_accessor
:mse_language
class
<<
self
attr_accessor
:languages
...
...
@@ -44,6 +45,7 @@ class LanguageConstants
end
self
.
languages
[
locale
].
pendulum_effect_head
=
value
[
'pendulum_effect_head'
]
self
.
languages
[
locale
].
monster_effect_head
=
value
[
'monster_effect_head'
]
self
.
languages
[
locale
].
mse_language
=
value
[
'mse_language'
]
end
end
end
MSETranslator.rb
View file @
17293014
...
...
@@ -8,7 +8,7 @@ module MSETranslator
module_function
def
write_set
(
file
,
set
)
file
.
write
(
sprintf
(
MSEConstants
::
MSEConfig
::
Head
,
Global
.
language
.
upcase
))
file
.
write
(
sprintf
(
MSEConstants
::
MSEConfig
::
Head
,
LanguageConstants
.
current
.
mse_
language
.
upcase
))
for
card
in
set
self
.
write_card
(
file
,
card
)
end
...
...
locales/ja-JP.yml
View file @
17293014
...
...
@@ -51,4 +51,4 @@ ja-JP:
-
"
幻竜族"
pendulum_effect_head
:
!ruby/regexp
/【Pスケール:青(.*)/赤(.*)】(\n)?/
monster_effect_head
:
!ruby/regexp
/(\n)?【モンスター効果】\n/
mse_language
:
jp
locales/zh-CN.yml
View file @
17293014
...
...
@@ -51,4 +51,4 @@ zh-CN:
-
"
幻龙族"
pendulum_effect_head
:
!ruby/regexp
/←\\d 【灵摆】 \\d→(\\n)?/
monster_effect_head
:
"
\n
【怪兽效果】
\n
"
mse_language
:
cn
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment