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
ae9feae3
Commit
ae9feae3
authored
Dec 09, 2016
by
Peter Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix en-US
parent
a5176d49
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
MSETranslator.rb
MSETranslator.rb
+3
-2
locales/en-US.yml
locales/en-US.yml
+2
-2
No files found.
MSETranslator.rb
View file @
ae9feae3
...
...
@@ -72,6 +72,7 @@ module MSETranslator
word
=
word
.
delete
"
\r
"
word
=
word
.
squeeze
"
\n
"
word
=
word
.
gsub
"。
\n
"
,
"。"
word
=
word
.
gsub
".
\n
"
,
"."
word
end
...
...
@@ -87,9 +88,9 @@ module MSETranslator
word
=
reline
word
words
=
word
.
split
LanguageConstants
.
current
.
monster_effect_head
return
[
""
,
words
[
0
]]
if
words
.
count
<=
1
pendulum_effect
=
words
[
0
].
split
(
LanguageConstants
.
current
.
pendulum_effect_head
).
last
pendulum_effect
=
words
[
0
].
gsub
(
LanguageConstants
.
current
.
pendulum_effect_head
,
""
).
strip
pendulum_effect
=
""
if
pendulum_effect
==
nil
return
[
pendulum_effect
,
words
[
words
.
length
-
1
]]
return
[
pendulum_effect
,
words
[
words
.
length
-
1
]
.
strip
]
end
def
generate_mse
(
data
,
key
=
""
)
...
...
locales/en-US.yml
View file @
ae9feae3
...
...
@@ -49,7 +49,7 @@ en-US:
-
"
Divine-Beast"
-
"
Creator
God"
-
"
Wyrm"
pendulum_effect_head
:
!ruby/regexp
/Pendulum
Effect\n+
?/
monster_effect_head
:
!ruby/regexp
/
(\n)?Monster Effect\n
/
pendulum_effect_head
:
!ruby/regexp
/Pendulum
Scale\s?=\s?\d+?\n?\[\s?Pendulum Effect\s?\]\n?(\-n\/a\-)
?/
monster_effect_head
:
!ruby/regexp
/
\n?(-+?\n+)?\n?\[\s?(Monster Effect|Flavor Text)\s?\]
/
mse_language
:
en
mse_stylesheet
:
standard
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