Skip to content

KuwaLee/PO-Revision-Date-Updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PO-Revision-Date-Updater

This is a Python script to automatically update PO-Revision-Date of messages.po while translating for Bluesky app with VS code.

How to use

  1. Clone project.

  2. In VS code you need Run on save extension.

  3. Open settings.json to add rules like this.

"emeraldwalk.runonsave": {
        "shell":"path/to/python.exe",
        "commands": [
            {
                "match": ".po",
                "cmd": "exec(open('path/to/PO-Revision-Date-Updater.py').read(), {'file_path': r'${file}', 'timezone': 'Your/Timezone'})"
            }
        ]
    }

Note

  • match rule is regex expression.

  • ${file} or r'${file}' can be replace by absolute path.

  • timezone, For example can be like Asia/Taipei.

  • Can be used with any case while editing .po, if "PO-Revision-Date: \n" presents.

  1. Enjoy!

About

Python script to auto update "PO-Revision-Date"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages