You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part 1 of (hopefully) 2 for internationalizing Yafc. Primarily, this
downloads an appropriate Noto Sans font for languages Roboto doesn't
support, and then restarts to switch to that font.
YAFC language support is experimental. If your language is missing, that is probably because of one of two reasons:
3
+
You can ask Yafc to display non-English names for Factorio objects from the Welcome screen:
4
+
- On the Welcome screen, click the language name (probably "English") next to "In-game objects language:"
5
+
- Select your language from the drop-down that appears.
6
+
- If your language uses non-European glyphs, it may appear at the bottom of the list.
7
+
- To use these languages, Yafc may need to do a one-time download of a suitable font.
8
+
Click "Confirm" if Yafc asks permission to download a font.
9
+
- If you do not wish to have Yafc automatically download a suitable font, click "Select font" in the drop-down, and select a font file that supports your language.
4
10
5
-
- It has less than 90% support in official Factorio translation
6
-
- It uses non-European glyphs (such as Chinese or Japanese languages)
7
-
8
-
You can enable support for your language using this method:
9
-
- Navigate to `yafc.config` file located at `%localappdata%\YAFC` (`C:\Users\username\AppData\Local\YAFC`). Open it with the text editor.
10
-
- Find `language` section and replace the value with your language code. Here are examples of language codes:
11
-
- Chinese (Simplified): `zh-CN`
11
+
If your language is supported by Factorio but does not appear in the Welcome screen, you can manually force YAFC to use the strings for your language:
12
+
- Navigate to `yafc2.config` file located at `%localappdata%\YAFC` (`C:\Users\username\AppData\Local\YAFC`). Open it with a text editor.
13
+
- Find the `language` section and replace the value with your language code. Here are examples of language codes:
14
+
- Chinese (Simplified): `zh-CN`
12
15
- Chinese (Traditional): `zh-TW`
13
16
- Korean: `ko`
14
17
- Japanese: `ja`
15
18
- Hebrew: `he`
16
-
- Else: Look into `Factorio/data/base/locale` folder and find folder with your language.
17
-
- If your language have non-European glyphs, you also need to replace fonts: `Yafc/Data/Roboto-Light.ttf` and `Roboto-Regular.ttf` with any fonts that support your language glyphs.
19
+
- Else: Look into `Factorio/data/base/locale` folder and find the folder with your language.
20
+
- If your language uses non-European glyphs, you also need to replace the fonts `Yafc/Data/Roboto-Light.ttf` and `Roboto-Regular.ttf` with fonts that support your language.
21
+
You may also use the "Select font" button in the language dropdown on the Welcome screen to change the font.
publicoverridestringdescription=>"Automation analysis tries to find what objects can be automated. Object cannot be automated if it requires looting an entity or manual crafting.";
privateconststringUseDependencyExplorer="\n\nFor this reason YAFC has a Dependency Explorer that allows you to manually enable some of the core recipes. "+
266
266
"YAFC will iteratively try to unlock all the dependencies after each recipe you manually enabled. "+
267
267
"For most modpacks it's enough to unlock a few early recipes like any special recipes for plates that everything in the mod is based on.";
268
-
269
-
publicoverridestringdescription=>"Milestone analysis starts from objects that are placed on map by the map generator and tries to find all objects that are accessible from that, "+
270
-
"taking notes about which objects are locked behind which milestones.";
0 commit comments