Skip to content

Commit

Permalink
renamed to csvi18n
Browse files Browse the repository at this point in the history
  • Loading branch information
vinyll committed Jan 26, 2018
1 parent 56dcc94 commit f397a4f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
File renamed without changes.
16 changes: 8 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# TCI Translation Library
# Translation Library with CSV

Translate the TCI interface from CSV translation files.
Translate a content from a CSV translation files.

## Example

TCI-i18n provides translation from CSV files.

### CSV files format

CSV files can have this format and should be UTF-8 encoded
CSV files can have this format and should be UTF-8 encoded.

_my-translations-file.csv_:

```
TCI title,Titre ITC
Expand All @@ -19,8 +19,8 @@ Welcome %(user)s!,Bienvenue %(user)s !
### Usage

```
from tcii18n import Translator
from csvi18n import Translator
translator = Translator('my_file.csv')
translator.translate('My string')
translator = Translator('my-translations-file.csv')
translator.translate('TCI title') # => Titre ITC
```
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


setup(
name='tcii18n',
name='csv-i18n',
version='0.2',
author='Vincent Agnano',
license='Copyright Anthropedia',
Expand Down
Empty file removed tcii18n/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion test/i18n.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from unittest import TestCase
from tcii18n.translator import Translator
from csvi18n import Translator


class I18nTest(TestCase):
Expand Down

0 comments on commit f397a4f

Please sign in to comment.