Comments (9)
PR #101 cleans up _n().
from glotpress.
Some strings in gp-templates/project-permissions.php would be impossible to be translated into some languages. (For example, Japanese.)
from glotpress.
Could you provide an example of what can't be translated?
Items like the slug, username, login id, etc. aren't translated as they shouldn't be.
from glotpress.
@toolstack: Japanese has quite different sentence structure. In this case, word order is the problem. Here's an example:
- English:
user <a href="{user_nicename}">{user_login}</a> can {action} strings with locale {locale_slug} and slug {set_slug}
- Japanese:
ユーザー <a href="{user_nicename}">{user_login}</a> はロケール {locale_slug} で、スラッグ {set_slug} の文字列を {action} できます
from glotpress.
@shield-9 take a look at #188, would that work better?
from glotpress.
See also https://github.com/deliciousbrains/GlotPress/pull/198
Merge similar strings with different variations and avoid using HTML <code>
tags in translation strings.
from glotpress.
Hi @ocean90
I have some suggestions to improve i18n.
-
Merge the following Priority labels (have commit):
-
Priority of the original:
-
Priority:
-
Move arrows outside of the following strings and merge similar (have commit):
-
Project actions ↓
-
Project actions ↑
-
Personal project options ↓
-
Personal project options ↑
from glotpress.
Hi @ocean90,
Regarding the above item:
- Strings like __( 'edit', 'glotpress' ) should get a context: _x( 'edit', 'glossary', 'glotpress' )
Did you mean the __( '(edit)', 'glotpress' )
used for Glossary, Project and Translation set?
There are also these two, that I believe you weren't refering to:
__( 'Edit', 'glotpress' ),
__( 'Delete', 'glotpress' ),
from glotpress.
I'll post here another I18n issue that occurs in many pages:
The action links aren't separated with a space.
This would be easily fixed as below:
Current code example:
return gp_link_get( gp_url( gp_url_join( '/glossaries', $glossary->id, '-edit' ) ), $text, gp_attrs_add_class( $attrs, 'action edit' ) );
Fix with prepend empty space on add custom text link:
return gp_link_get( gp_url( gp_url_join( '/glossaries', $glossary->id, '-edit' ) ), ' ' . $text, gp_attrs_add_class( $attrs, 'action edit' ) );
from glotpress.
Related Issues (20)
- Bug in glossary terms matching bounded by placeholders
- Customize Other Languages and Other Locales Sections HOT 3
- Bug in References link: Trac Error, cannot open the link HOT 1
- Add a preview/validation feature for datetime strings HOT 2
- Warning/Fatal due to pentesting payloads
- Warning (PHP7) / Fatal (PHP8) triggered by user inputs in gp_array_get()
- GlotPress saves the wrong translation
- Allow importing translations from the new PHP format
- No warning is given when a fuzzy is approved that contains a missing placeholder like %1$s HOT 5
- AZB locale properties need to be updated HOT 7
- False positive match in Glossary term '&' HOT 4
- Version discussion and translation statistics in GlotPress HOT 2
- Improve discussion mails - Not send 1 per discussion string HOT 6
- Exporting as only "es" not "es_ES" HOT 1
- URLs without ending slash aren't fully recognized
- Breadcrumbs: All the items have links including the last one (current), only some have ending actions HOT 3
- Glossary: No matches for single words of part_of_speech with no suffix rules
- Glossary: Match by glossary terms already suffixed HOT 1
- We do not have a link to the project in the breadcrumbs when we create a new project
- Currently GlotPress gives unwanted error messages for missing uppercase at the start of the sentence.
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 glotpress.