Wuzzy
ad8aa36b25
Update bash_completion (partially)
2020-06-14 05:49:26 +02:00
Wuzzy
e310165f41
Update README
2020-06-14 05:47:56 +02:00
Wuzzy
cf14e56bd4
Increase doublespace threshold
2020-06-14 01:32:55 +02:00
Wuzzy
d6f9e9c229
Add short cmd line parameters
2020-06-14 01:32:05 +02:00
Wuzzy
89c1de2076
Disable alphabetic sorting by default
2020-06-14 01:31:10 +02:00
Wuzzy
9a4408ec98
Remove comment noise
2020-06-14 01:17:04 +02:00
FaceDeer
f679bb35e3
Merge pull request #6 from louisroyer/no_old_files
...
Add --no-old-file option parameter
2020-03-09 23:32:43 -06:00
Louis Royer
780eecb893
Add --no-old-file option parameter
...
When you are working with git, it can seems useless to copy old
translations in *.old files since we have access to old versions with
git. Using this setting means you do not have to remove locale/*.old
files before commit (or to add them to .gitignore). By default, *.old
files are created (this is opt-in).
Fixes typo in command given for bash_completion in README.md.
2020-03-09 18:32:09 +01:00
FaceDeer
326daaf175
Add url of repository to the main script
2020-03-02 15:01:58 -07:00
FaceDeer
eaba1ec84a
Update readme.md
2020-03-01 09:41:32 -07:00
FaceDeer
029d435db5
add bash autocompletion to the readme
2020-02-20 20:20:00 -07:00
FaceDeer
d15269fcfe
Merge pull request #5 from louisroyer/bash_completion
...
Add bash_completion
2020-02-20 20:14:21 -07:00
Louis Royer
af0fca890f
Add bash_completion
...
When running on linux to install bash_completion for i18n, you can run
```bash
mkdir -p ${XDG_DATA_HOME:-$HOME/.local/share}/bash-completions/completions
ln -s $PWD/bash-completions/completions/i18n ${XDG_DATA_HOME:-$HOME/.local/share}/bash-completions/completions/i18n
```
This will provide bash autocompletion for this script (you have to run
it without using `python3 i18n` command, use `./i18n.py` instead (or `i18n.py` if provided by `$PATH`)).
2020-02-20 12:53:44 +01:00
FaceDeer
879f92b159
ah, I see what the intention was. replacing + with ,
2020-02-19 21:46:18 -07:00
FaceDeer
65ec384d99
without this slash here the path is invalid and .po import is non-functional
2020-02-19 21:41:32 -07:00
FaceDeer
f9c370a437
add double-spacing only for lines over a certain threshold
2020-02-19 14:40:39 -07:00
FaceDeer
dde44737bc
Merge pull request #4 from louisroyer/help
...
Fix usage message, fix README, small code improvement
2020-02-19 14:18:13 -07:00
Louis Royer
f24397908e
Fix usage message, fix README, small code improvement
2020-02-19 22:07:12 +01:00
FaceDeer
ba6ef62133
fix file header
2020-02-19 13:35:10 -07:00
FaceDeer
5f17efab90
update readme
2020-02-19 11:48:10 -07:00
FaceDeer
b1a08610b1
space out the formatting of translation files for easier reading, preserve comments associated with translation lines
2020-02-19 11:30:27 -07:00
FaceDeer
7d18fc918d
Merge pull request #1 from louisroyer/cli
...
Add CLI interface
2020-02-19 09:28:04 -07:00
Louis Royer
8ef83a6a6a
Add CLI interface
...
Also fixed the missing `\n` at the end of the file.
Use of f-strings for readability. Use of `os.path.join` for portability.
Run with parameter `--help` for a list of commands available.
2020-02-19 12:35:30 +01:00
FaceDeer
ee1c2d63be
standardize text output, group strings by source file
2020-02-18 20:18:54 -07:00
FaceDeer
ba879498d5
commenting out my debugging code
2020-02-18 18:01:02 -07:00
FaceDeer
d742c52d9a
make the script a bit less verbose now that it's behaving reasonably well
2020-02-18 16:58:05 -07:00
FaceDeer
0158e4de6c
only write .old files if the output has changed
2020-02-18 13:38:30 -07:00
FaceDeer
d10c7ecfb9
supporting [[strings]]
2020-02-18 13:01:28 -07:00
FaceDeer
5cfbf6eec8
keep obsolete strings from .po files
2020-02-17 22:59:26 -07:00
FaceDeer
cca245d718
add .po file import
2020-02-17 21:30:44 -07:00
FaceDeer
47a2bf7100
handle basic string concatenation. I can think of situations where this would go wrong, though, such as if you had the string ".."
2020-02-16 17:17:22 -07:00
FaceDeer
51a5dc2577
also catch NS() calls
2020-02-16 14:12:04 -07:00
FaceDeer
bccb62ca93
handle S( "whitespace before and after" )
2020-02-16 12:55:22 -07:00
FaceDeer
d1e639ed53
make script able to run on the whole /mods folder, mainly for testing purposes
2020-02-16 12:36:15 -07:00
FaceDeer
e3c0fa7e1e
recognize function(S("stuff")), un-escape quotes in output text
2020-02-16 12:16:38 -07:00
FaceDeer
803af678f2
a modicum of documentation
2020-02-15 23:33:57 -07:00
FaceDeer
b81cb03c04
Handle modpacks, create /locale folder if needed, ignore mods with no translatable strings
2020-02-15 23:29:54 -07:00
FaceDeer
177ae4e5dc
Initial commit
2020-02-15 22:57:41 -07:00