Skip to content

Commit 69e7570

Browse files
committed
minor
1 parent 031d409 commit 69e7570

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,20 @@ The task to get all strings from an image as YAML (for translation, to add to `i
251251
```bash
252252
cd /js/server # in the server folder
253253
254-
NODE_LANG=zh npm run gulp -- engine:koa:tutorial:imageYaml --image hello.svg
254+
NODE_LANG=zh npm run gulp -- engine:koa:tutorial:imageYaml --image code-style.svg
255255
```
256256
257+
It extracts all text lines. Useful for debugging, when the translation doesn't "catch up", because the SVG text has an extra space or so.
258+
257259
## The "overflowing text" problem
258260

259-
The replacement script only operates on strings, not other graphics, so a long translated string may not fit the picture. Most pictures have some extra space for longer text, so a slight increase doesn't harm, but sometimes that happens.
261+
The replacement script only operates on strings, not other graphics, so a long translated string may not fit the picture.
260262

261-
Usually, you should adjust the translated text, make it shorter to fit.
263+
Most pictures have some extra space for longer text, so a slight increase doesn't harm.
262264
263-
If your translated string absolutely must be longer and doesn't fit, let me know, I can adjust the picture.
265+
If the translated text is much longer, please try to change it, make it shorter to fit.
264266
267+
If the translated text absolutely must be longer and doesn't fit, let me know, we'll see how to adjust the picture.
265268
266269
# Dev mode
267270

modules/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let config = module.exports = {
5858
// public files, served by nginx
5959
publicRoot: path.join(process.cwd(), 'public', lang),
6060
// private files, for expiring links, not directly accessible
61-
tutorialRoot: env.TUTORIAL_ROOT || path.join(process.cwd(), '..', lang + '.javascript.info'),
61+
tutorialRoot: env.TUTORIAL_ROOT || path.join(process.cwd(), 'repo', `${env.TUTORIAL_LANG || lang}.javascript.info`),
6262
tmpRoot: path.join(process.cwd(), 'tmp', lang),
6363
// js/css build versions
6464
cacheRoot: path.join(process.cwd(), 'cache', lang),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
"rupture": "*",
7272
"style-loader": "^0",
7373
"stylus-loader": "^3",
74+
"terser-webpack-plugin": "^4",
7475
"trace": "^3.1.0",
7576
"uglify-es": "^3",
76-
"terser-webpack-plugin": "^4",
7777
"uglifyjs-webpack-plugin": "^1",
7878
"webpack": "^4.44.2",
7979
"yaml-loader": "^0.5.0"

repo/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)