Code Monkey home page Code Monkey logo

dart_gettext's People

Contributors

cah4a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

royalwang

dart_gettext's Issues

flow

hi
What are the steps you take to convert from source code to json file like es_ES.json ?

For now I found this method:

cd dart_gettext
pybabel extract -F babel.cfg -k __ -o messages.pot .
pybabel init -i messages.pot -d translations -l es_ES

then edit
translations/es_ES/LC_MESSAGES/messages.po with poedit

then make a script using gettext-parser
to convert translations/es_ES/LC_MESSAGES/messages.po to l10n/es_ES.json

do you work like this or ou have better dev flow?

Example does not change displayed texts

I git clone https://github.com/cah4a/dart_gettext.git
then open the example dir in vscode.
The app display is ok but clicking the Change button does nothing

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.1.10-pre.160, on Mac OS X 10.14.1 18B75, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
[✓] VS Code (version 1.30.2)
[✓] Connected device (1 available)

• No issues found!

example: invalid_use_of_protected_member

for state.setState in the example

	"code": "invalid_use_of_protected_member",
	"message": "The member 'setState' can only be used within instance members of subclasses of 'package:flutter/src/widgets/framework.dart'.",
	"source": "dart",
	"startLineNumber": 28,
	"startColumn": 11,

Export PO

Perhaps this is a silly question, but I cannot find how I can export an initial .po file. It seems I can use the gettext_parser to compile a .po file, but how do I get the object to pass to this function? I have a program with dynamic gettext calls in several places, and I want to run the program and then export a .po file.

Generate .po files for project on flutter.

Hello.
It is not clear how to generate/update .po files automatically.
I have a project on flutter with a lot of hardcoded strings. Is there way to extract string to .po files automatically? And how to update them in future?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.