Comments (4)
Some other ideas of what data or structure we would need:
- Can specify file and location of string
- Can specify a version. Ie >m134 etc or v1 only. This allows us to have one
file in the package that covers everything
- Have a system file and allow a user to augment or override it
- Allow wildcard exclusions. This would allow eg exclusion of whole of
helpcontent2 from OOo. Or exclusion based on entry name eg. *.key in Mozilla.
from translate.
I have found some others that you probably want to be able to exlude or mark as
configuration entries:
- *.width
- *.height
- *.size
- Items that contains only a URL
- One character wide items (most of these are *.key) but others are eg ‘%’
- Pure space ie there are only tab or space characters in the msgid
- Variables, space and punc. Items that contain only those three eg ‘%S = %S’
- regex eg ‘VK_F[0-3]+’ in Mozilla to eliminate all keyboard commandkeys
Notes on command keys, they are called
- *.key
- *.commandkey and *.commanKey
- *.commandkey2
from translate.
I think a better option would be to get some new syntax into the upstream
Mozilla DTD and .properties files. Currently they have DONT_TRANSLATE entries.
If they added CONFIG entries we would at least know what to do with it. If we
had something like:
CONFIG (true|false) then we could even check for valid values.
I’m marking this for addressing LATER as I think we need to get Mozilla involved
in this.
from translate.
This Mozilla bug is a request to add config information:
https://bugzilla.mozilla.org/show_bug.cgi?id=331438
from translate.
Related Issues (20)
- po2rc should preserve comments location
- test_odf_xliff changes working directory and does not change it back, breaking other tests
- Unable to make tests pass locally - pycountry triggers DeprecationWarning with pkg_resources HOT 3
- translate-toolkit-3.9.2-1.fc39.x86_64/usr/bin/mozfunny2prop --manpage hangs HOT 4
- Extract only text from IDML by idml2po
- support several input parameters for pofilter (and other commands)
- Support for Android resource converter HOT 4
- prop2po: support for different encodings for both the input file and the template
- prop2po: personality given in command line is ignored for .strings files HOT 2
- Locate tests and test data outside 'translate' module HOT 2
- Ben
- Android: Some strings marked as `translatable="false"` still treated as translatable HOT 2
- Code block not parsed from Markdown HOT 3
- Proposal to use mdit-py-i18n (along with markdown-it-py) for Markdown support HOT 7
- Reduce question mark escaping in Android
- tests/translate/convert/test_rc2po.py failures with Python 3.12 HOT 7
- Translate
- Use Windows newlines for resx files
- Do not include "Explanation" field in iOS strings files HOT 2
- Add support for Mobile Kotlin resources HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from translate.