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
cd9437bd
Commit
cd9437bd
authored
Apr 15, 2016
by
Peter Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added stylesheet selection
parent
d41e218c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
2 deletions
+61
-2
LanguageConstants.rb
LanguageConstants.rb
+2
-0
MSEConstants.rb
MSEConstants.rb
+1
-1
MSETranslator.rb
MSETranslator.rb
+1
-1
locales/ja-JP.yml
locales/ja-JP.yml
+1
-0
locales/zh-CN.yml
locales/zh-CN.yml
+1
-0
locales/zh-Classical.yml
locales/zh-Classical.yml
+55
-0
No files found.
LanguageConstants.rb
View file @
cd9437bd
...
@@ -29,6 +29,7 @@ class LanguageConstants
...
@@ -29,6 +29,7 @@ class LanguageConstants
attr_accessor
:monster_effect_head
attr_accessor
:monster_effect_head
attr_accessor
:term_races
# 偷个鸡
attr_accessor
:term_races
# 偷个鸡
attr_accessor
:mse_language
attr_accessor
:mse_language
attr_accessor
:mse_stylesheet
class
<<
self
class
<<
self
attr_accessor
:languages
attr_accessor
:languages
...
@@ -46,6 +47,7 @@ class LanguageConstants
...
@@ -46,6 +47,7 @@ class LanguageConstants
self
.
languages
[
locale
].
pendulum_effect_head
=
value
[
'pendulum_effect_head'
]
self
.
languages
[
locale
].
pendulum_effect_head
=
value
[
'pendulum_effect_head'
]
self
.
languages
[
locale
].
monster_effect_head
=
value
[
'monster_effect_head'
]
self
.
languages
[
locale
].
monster_effect_head
=
value
[
'monster_effect_head'
]
self
.
languages
[
locale
].
mse_language
=
value
[
'mse_language'
]
self
.
languages
[
locale
].
mse_language
=
value
[
'mse_language'
]
self
.
languages
[
locale
].
mse_stylesheet
=
value
[
'mse_stylesheet'
]
end
end
end
end
end
end
MSEConstants.rb
View file @
cd9437bd
...
@@ -30,7 +30,7 @@ module MSEConstants
...
@@ -30,7 +30,7 @@ module MSEConstants
FileConfigName
=
"Chinese-Simplified"
FileConfigName
=
"Chinese-Simplified"
PathImage
=
"Images"
PathImage
=
"Images"
Head
=
"mse version: 0.3.8
\n
game: yugioh
\n
stylesheet:
standard
\n
set info:
\n\t
language: %s
\n\t
edition:
\n\t
no corner: yes
\n\t
ST mark is text: yes
\n\t
pendulum image is small: yes
\n\t
hide gamecode: yes
\n
"
Head
=
"mse version: 0.3.8
\n
game: yugioh
\n
stylesheet:
%s
\n
set info:
\n\t
language: %s
\n\t
edition:
\n\t
no corner: yes
\n\t
ST mark is text: yes
\n\t
pendulum image is small: yes
\n\t
hide gamecode: yes
\n
"
End
=
"version control:
\n\t
type: none
\n
apprentice code: "
End
=
"version control:
\n\t
type: none
\n
apprentice code: "
Width
=
319
Width
=
319
...
...
MSETranslator.rb
View file @
cd9437bd
...
@@ -8,7 +8,7 @@ module MSETranslator
...
@@ -8,7 +8,7 @@ module MSETranslator
module_function
module_function
def
write_set
(
file
,
set
)
def
write_set
(
file
,
set
)
file
.
write
(
sprintf
(
MSEConstants
::
MSEConfig
::
Head
,
LanguageConstants
.
current
.
mse_language
.
upcase
))
file
.
write
(
sprintf
(
MSEConstants
::
MSEConfig
::
Head
,
LanguageConstants
.
current
.
mse_
styleseet
,
LanguageConstants
.
current
.
mse_
language
.
upcase
))
for
card
in
set
for
card
in
set
self
.
write_card
(
file
,
card
)
self
.
write_card
(
file
,
card
)
end
end
...
...
locales/ja-JP.yml
View file @
cd9437bd
...
@@ -52,3 +52,4 @@ ja-JP:
...
@@ -52,3 +52,4 @@ ja-JP:
pendulum_effect_head
:
!ruby/regexp
/【Pスケール:青(.*)/赤(.*)】(\n)?/
pendulum_effect_head
:
!ruby/regexp
/【Pスケール:青(.*)/赤(.*)】(\n)?/
monster_effect_head
:
!ruby/regexp
/(\n)?【モンスター効果】\n/
monster_effect_head
:
!ruby/regexp
/(\n)?【モンスター効果】\n/
mse_language
:
jp
mse_language
:
jp
mse_stylesheet
:
standard
locales/zh-CN.yml
View file @
cd9437bd
...
@@ -52,3 +52,4 @@ zh-CN:
...
@@ -52,3 +52,4 @@ zh-CN:
pendulum_effect_head
:
!ruby/regexp
/←\d+ 【灵摆】 \d+→\n?/
pendulum_effect_head
:
!ruby/regexp
/←\d+ 【灵摆】 \d+→\n?/
monster_effect_head
:
!ruby/regexp
/\n(?:【怪兽效果】|【怪兽简介】|【怪兽描述】)\n/
monster_effect_head
:
!ruby/regexp
/\n(?:【怪兽效果】|【怪兽简介】|【怪兽描述】)\n/
mse_language
:
cn
mse_language
:
cn
mse_stylesheet
:
standard
locales/zh-Classical.yml
0 → 100644
View file @
cd9437bd
zh-CN
:
term
:
monster
:
"
怪兽卡"
spell
:
"
魔法卡"
trap
:
"
陷阱卡"
normal
:
"
通常"
effect
:
"
效果"
fusion
:
"
融合"
ritual
:
"
仪式"
trapmonster
:
"
陷阱怪兽"
spirit
:
"
灵魂"
union
:
"
同盟"
dual
:
"
二重"
tuner
:
"
调整"
synchro
:
"
同调"
token
:
"
衍生物"
quickplay
:
"
速攻"
continuous
:
"
永续"
equip
:
"
装备"
field
:
"
场地"
counter
:
"
反击"
flip
:
"
反转"
cartoon
:
"
卡通"
xyz
:
"
超量"
pendulum
:
"
灵摆"
races
:
-
"
"
-
"
战士族"
-
"
魔法使族"
-
"
天使族"
-
"
恶魔族"
-
"
不死族"
-
"
机械族"
-
"
水族"
-
"
炎族"
-
"
岩石族"
-
"
鸟兽族"
-
"
植物族"
-
"
昆虫族"
-
"
雷族"
-
"
龙族"
-
"
兽族"
-
"
兽战士族"
-
"
恐龙族"
-
"
鱼族"
-
"
海龙族"
-
"
爬虫族"
-
"
念动力族"
-
"
幻兽神族"
-
"
创世神族"
-
"
幻龙族"
pendulum_effect_head
:
!ruby/regexp
/←\d+ 【灵摆】 \d+→\n?/
monster_effect_head
:
!ruby/regexp
/\n(?:【怪兽效果】|【怪兽简介】|【怪兽描述】)\n/
mse_language
:
cn
mse_stylesheet
:
classical
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