Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ftb-gamepedia/att-9001
Automatic Tile Translator 9001
https://github.com/ftb-gamepedia/att-9001
bot ftb-wiki mediawiki mediawiki-bot minecraft ruby wiki
Last synced: 2 days ago
JSON representation
Automatic Tile Translator 9001
- Host: GitHub
- URL: https://github.com/ftb-gamepedia/att-9001
- Owner: FTB-Gamepedia
- License: mit
- Created: 2016-06-10T00:55:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-06T02:22:54.000Z (6 months ago)
- Last Synced: 2024-11-24T22:41:36.301Z (2 months ago)
- Topics: bot, ftb-wiki, mediawiki, mediawiki-bot, minecraft, ruby, wiki
- Language: Ruby
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ATT-9001
**Automatic Tile Translator 9001** is used to automatically translate the [Official FTB Wiki's](https://ftb.fandom.com/wiki/FTB_Wiki) [tiles](https://ftb.fandom.com/wiki/Special:TileList) based on already existing language files.
ATT-9001 supports both language files made in the [`.properties`](https://en.wikipedia.org/wiki/.properties) format (with the suffix `.lang`) and files in [JSON](https://en.wikipedia.org/wiki/JSON) format (with the suffix `.json`), thus it can work with newer versions of Minecraft.
## Usage
1. Make Ruby is installed, particularly the version specified in the `Gemfile`.
2. Open a Terminal or whatever and change the directory to this directory.
3. Install, if necessary, all dependencies listed in the Gemfile. This can be done through running `bundle install`.
4. Copy example_config.yml to config.yml.
5. Fill in the details. Note `login` is _not_ the same as the bot's username on Gamepedia. Instead, it is a special username specific to a "bot password," which must be generated by [Special:BotPasswords](https://ftb.fandom.com/wiki/Special:BotPasswords). `token`, likewise, is _not_ the same as the bot's password on Gamepedia; it also must come from Special:BotPasswords. Note that when a token generated through [Special:BotPasswords](https://ftb.fandom.com/wiki/Special:BotPasswords), it cannot be viewed again, so make sure to put it in the config file so it isn't lost.
5. Copy the language files of the mod you want translated to `/resources//*`.
6. Run with `ruby run.rb ` (if there are errors caused by missing gems, try doing `bundle exec ruby run.rb`).
7. Profit. Make sure to not import the tiles through your regular account, but through a bot account. If you don't, FTB Wiki editors might get angry since it spams the recent changes.The console will output what tiles are being translated as they are translated. Example output:
```
47402; Lapis Electron Tube (item.for.thermionicTubes.lapis.name) => Tubo de electrones de Lapis (es-ni)
```If nothing needs an update, nothing will be updated, and the output will be rather lame.
### Command options
Some mods (very specifically, MineFactory Reloaded) format their property files very strangely, with extra spaces, like this:
```
tile.mfr.machine.planter.name = Planter
tile.mfr.machine.fisher.name = Fisher
tile.mfr.machine.harvester.name = Harvester
```You add the --remove-spaces while running the command to fix this. (Actually, you just need a 2nd argument of any kind because I'm being hacky.)