Comments (31)
Some links in the meantime
https://www.npmjs.com/package/pontoon-to-webext
File structure requested by Pontoon
https://developer.mozilla.org/en-US/docs/Mozilla/Implementing_Pontoon_in_a_Mozilla_website
Pontoon can commit in master or in a branch, like it happens for SnoozeTabs.
Is this a TestPilot experiment?
from notes.
The user needing access is: https://github.com/mozilla-pontoon
Also cc @mathjazz, so he's aware of the incoming invite.
P.S. you can ping random people in comments, you just need to type their nicknames completely, autocomplete is available only for collaborators of the project
from notes.
/cc @flodolo
from notes.
This is one confusing issue subject :-) I'd suggest "Add localization support".
I'm happy to answer questions if you have, I took a quick look at the repository and couldn't spot any string, so you might check at other repositories to see how they manage extracting strings to .properties, etc.
from notes.
Sorry, I typed it during the meeting. Updated
from notes.
Is this a TestPilot experiment?
Yeap!
from notes.
- Use
browser.i18n.getMessage('slug')}
everywhere we need to show a translated string. - Add
pontoon-to-webext
as adev depedency
- Try to avoid hardcoded list of locales!!! OR List supported locale in packages.json
- Add README to this repo, example: https://github.com/mozilla/activity-stream/blob/master/docs/v1-test-pilot/localization.md
- Create a ./bin/build-locales.js script and plug it in the
npm run build
step. - Create a locales directory wih translations for supported locales.
- Then plug Ponton to keep locales translations in sync
- Create a
locales/en-US/notes.properties
with American translations - Handle langDir
ltr, rtl
and Configure Quill.js
Questions
- What are the steps to configure Pontoon?
- Are there any missing steps you can see?
- Do we have to do anything to configure browser.i18n?
from notes.
What are the steps to configure Pontoon?
That's on me as soon as soon as you create the en-US file. You'll need to tell me which repository (I assume this one) or branch to commit to, and give Pontoon's bot access to the repository.
Are there any missing steps you can see?
I'd really like to avoid having an hard-coded list of locales (I didn't realize SnoozeTabs has one), because it's easy to forget to update it. I'm not sure how Activity Stream does it, but I don't think they use an hard-coded list.
https://github.com/mozilla/activity-stream/blob/master/docs/v1-test-pilot/localization.md
Do we have to do anything to configure browser.i18n?
I don't think so, but some technical details are also beyond my area of expertize.
from notes.
From mtg:
- Let's add the en-US file ASAP
- Figure out how to
npm start
with an RTL locale
from notes.
I can't tag you in the pr comments @flodolo ._.
Will this be sufficient for configuring pontoon on your end : #95
from notes.
Will this be sufficient for configuring pontoon on your end : #95
How complete is that localization file, i.e. how many strings are missing? I'm not sure if it makes sense to start localization if the file is far from complete.
If it's just for testing Pontoon automation, I can set it up on the dev version and try to see if it can commit (still not sure if you want commits in master or a branch).
At some point we will also need an easy way to test the dev add-on, possibly without having to install it from code (not all localizers are necessarily tech savvy).
from notes.
Thanks for taking a look!
How complete is that localization file, i.e. how many strings are missing? I'm not sure if it makes sense to start localization if the file is far from complete.
The localization file is complete with all the strings currently in the project, as well as a couple extra that are in the designs but not in the project.
If it's just for testing Pontoon automation, I can set it up on the dev version and try to see if it can commit (still not sure if you want commits in master or a branch).
^^ cc: @vladikoff
from notes.
@mathjazz @flodolo added @mozilla-pontoon to the repo
from notes.
I'll try to hook the repo tomorrow morning for a test (in case you'll see an incoming Italian localization).
from notes.
@vladikoff commit to master or a branch?
from notes.
A few more questions (I'll ask them here instead of #95, since that's already closed):
Is Sync intended as generic synchronization, or Firefox Sync?syncComplete=Synced
. Looking at the designs, do you expect to put a date after this string?- Looks like "Verify Your Account" is not available in the file. Expected?
- What's the usage of "Notes" at the top of the panel?
from notes.
Is Sync intended as generic synchronization, or Firefox Sync?
@Natim already answered this one (generic sync), I'll need to add a comment in the file. Sorry for the confusion, since you saw my comment disappear in the other PR.
from notes.
syncComplete=Synced. Looking at the designs, do you expect to put a date after this string?
Yes
Looks like "Verify Your Account" is not available in the file. Expected?
Yes, we know we will need this string but for this first version we removed the code related to synchronization and account management.
What's the usage of "Notes" at the top of the panel?
That's the title of the sidebar/add-on.
from notes.
That's the title of the sidebar/add-on.
Is that expected to be non localizable and identical to the add-on name?
from notes.
Can we localize the name of the add-on? My understanding is that the value is coming from the manifest.json file directly.
from notes.
No, we can't. That's why I'm asking if the plan is to basically use the add-on names, or if it's a generic "annotations". For the latter, we would need a localizable string.
from notes.
@vladikoff commit to master or a branch?
I think it is fine to commit localization directly to master since the review process happens in Pontoon already.
from notes.
Localization is working
b96d768
a1b6abd
At this point we could enable it on the prod server. A couple more questions:
- Does this description make sense?
- Any idea when this will be added to Test Pilot experiments? It will be a bit hard to engage volunteers without knowing that information
from notes.
Correct link to current description: https://mozilla-pontoon-staging.herokuapp.com/projects/test-pilot-notes/info/
from notes.
Does this description make sense?
Yes
Any idea when this will be added to Test Pilot experiments?
First weeks of July.
from notes.
First weeks of July.
OK, I'm going to enable the project and send an email out to localizers. I'll also enable French: note that you will be able to submit suggestions, but you'll need someone to review them (CC @TheoChevalier so he's aware).
from notes.
On a side note: I wonder if you want to (and can) disable CI on these commits.
from notes.
Project is set up on prod
https://pontoon.mozilla.org/projects/test-pilot-notes/
Email sent to dev-l10n
https://groups.google.com/d/msg/mozilla.dev.l10n/axPllXUlh34/mjlfMMaiAwAJ
This discussion might be useful for the date part
bwinton/SnoozeTabs#206
from notes.
Last thing to note: the policy for updating strings is the same as Firefox
https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#Changing_existing_strings
If you want your change to be noticed and considered by other languages, you need to change the string ID.
from notes.
Thanks so much @flodolo !
from notes.
Thanks @udaraweerasinghege !! This was fixed
from notes.
Related Issues (20)
- Suggestion: Per tab and/or link Notes
- The operation failed for an operation-specific reason
- Extreme Performance Degradation
- (Feature Request ) Pin Note, and Template
- Copying Numbered points to clipboard, does not copy the numbering
- [Request] Downloading notes
- No sync button HOT 2
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms
- Export as Markdown text file 📃
- icon doesn't appear in toolbar
- Can't input Chinese at the beginning of the line
- Notes Based on current website HOT 1
- Greenkeeper.io has been shutdown
- Official addon page issue (https://addons.mozilla.org/en-US/firefox/addon/notes-by-firefox/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search)
- Clicking notes icon in toolbar should close and open notes bar
- Clicking the notes button should be open/close functonality
- Sync is not working? HOT 6
- Recover notes from "Old Firefox Data"? HOT 3
- Start of notes while opening FF shoud be configurable
- Consider using react-native-quick-crypto
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 notes.