carsonip / alexa-pocket

Alexa Skill for Pocket
Apache License 2.0
13 stars 1 forks source link

German Translation #6

Closed michaelber closed 6 years ago

michaelber commented 6 years ago

It would be great to have a German translation of the Skill. I am happy to help with translations.

carsonip commented 6 years ago

Hopefully I can make the code translation-friendly on Sunday. I'll let you know when it is ready. Thanks!

carsonip commented 6 years ago

It is now i18n ready. Please read src/index.js. Add "de" like how they did it here: https://github.com/alexa/skill-sample-nodejs-trivia/blob/en-US/lambda/custom/index.js Also please suggest a German name for this skill. The display name in English is "My Pocket: Unofficial Pocket Skill" and the invocation name is "My Pocket". Many thanks!

carsonip commented 6 years ago

Please let me know if you need any help!

michaelber commented 6 years ago

That was fast, thanks! I think "My Pocket: Inoffizieller Pocket Skill" is fine as display name and "My Pocket" is also great as invocation name.

Translations are attached. translation-de.txt

carsonip commented 6 years ago

I've check the file. Looks good! Thanks so much. I'll test it soon. Please let me know your Amazon email if you want to join the beta test. I need to make sure the numbering (1, 2, 3...) in list is in German and can be used properly.

carsonip commented 6 years ago

@michaelber I'm afraid you'll need to translate 2 more things:

  1. https://github.com/carsonip/alexa-pocket/blob/master/speechAssets/SampleUtterances.txt This doesn't have to be a line-by-line translation. As long as there are enough lines for an Intent, it is enough.
  2. Please also translate the skill description (short and long):

Unofficial skill for Pocket that reads your saved articles.

This is an unofficial Alexa skill for Pocket. The skill requires to link to your Pocket account in the Alexa app / website.

When you say "Alexa, ask My Pocket what articles do I have", it will read you the title of 5 latest articles you saved. Then you may say a number, for example "Three", and it will read the corresponding article to you. After finish reading the article, you may archive the article.

Alternatively, you can say "Alexa, ask My Pocket to read me an article" for a randomly picked article in your Pocket.

To retrieve articles under a certain tag, e.g. book, you can say "Alexa, ask My Pocket for articles with tag book". The tag must be lowercase in Pocket.

If you would like to link / re-link your Pocket account, say "Alexa, ask My Pocket to link account".

If you have any suggestions / issues, please report them here: https://github.com/carsonip/alexa-pocket/issues

This is an open-source skill on GitHub: https://github.com/carsonip/alexa-pocket

This skill is in no way associated with Pocket (Read It Later, Inc).

After translating these I think we are good to go! Thanks.

carsonip commented 6 years ago

Maybe also translate the 3 example sentences and keywords for search:

Alexa, ask My Pocket what articles do I have Alexa, ask My Pocket to read me an article Alexa, ask My Pocket to link account

pocket,read,article,client,later,getpocket

Make sure the sentence structure triggers the intent correctly like this. Too bad they don't have a German version for this documentation.

Thank you so much.

michaelber commented 6 years ago

No worries - I'm familiar with Skill requirements (already published one myself)

Alright here you go:

SampleUtterances

Retrieve abrufen Retrieve gib mir meine gespeicherten Artikel Retrieve sag mir meine gespeicherten Artikel Retrieve meine gespeicherten Artikel abrufen Retrieve gib mir eine Liste meiner gespeicherten Artikel Retrieve rufe meine gespeicherten Artikel ab Retrieve meine gespeicherten Artikel Retrieve meine Liste gespeicherter Artikel Retrieve meine Artikel Retrieve meine Artikel abrufen Retrieve welche Artikel habe ich Retrieve welche Artikel gibt es RetrieveNext weiter RetrieveNext nächster ReadArticleFromIndex {Number} ReadArticleFromIndex nummer {Number} ReadRandomArticle lies einen Artikel ReadRandomArticle lies einen zufälligen Artikel ReadRandomArticle ein Artikel ReadRandomArticle einen Artikel ReadRandomArticle nach einem Artikel LinkAccount verknüpfe meinen Pocket Account LinkAccount verknüpfe meinen Account LinkAccount verknüpfe mit meinem Account LinkAccount verknüpfe mit My Pocket Account LinkAccount verknüpfe mit My Pocket LinkAccount verknüpfe mit Pocket LinkAccount verknüpfe Account

Description Short

Inoffizieller Skill für Pocket, der deine gespeicherten Artikel vorliest.

Description Long

My Pocket ist ein inoffizieller Alexa Skill für Pocket. Dieser Skill benötigt eine Verknüpfung mit deinem Pocket Account in deiner Alexa App/Webseite.

Wenn du sagst "Alexa, frage My Pocket welche Artikel habe ich?", werden dir die Titel der 5 aktuellsten Artikel vorgelesen. Dann kannst du eine Zahl nenne, zum Beispiel "Drei", und Alexa wird den entsprechenden Artikel für dich vorlesen. Wenn der Artikel fertig vorgelesen wurde, kannst du ihn archivieren.

Alternativ kannst du sagen "Alexa, frage My Pocket nach einem Artikel" für einen zufälligen Artikel aus deinem Pocket Account.

Um Artikel zu einem bestimmten Tag bzw. Schlagwort (z.B. Buch) zu erhalten, sage "Alexa, frage My Pocket nach Artikel mit dem Tag Buch". Der Tag muss in Pocket in Kleinbuchstaben geschrieben sein.

Wenn du deinen Pocket Account verknüpfen willst, sage "Alexa, sage My Pocket verknüpfe meinen Account".

Falls du Vorschläge oder Probleme hast, kannst du diese gerne hier berichten: https://github.com/carsonip/alexa-pocket/issues

My Pocket ist ein Open Source Skill auf GitHub: https://github.com/carsonip/alexa-pocket

Dieser Skill steht in keiner Verbindung mit Pocket (Read It Later, Inc).

Example sentences and keywords for search

Alexa, frage My Pocket welche Artikel habe ich Alexa, frage My Pocket nach einem Artikel Alexa, sage My Pocket verknüpfe meinen Account

pocket,lesen,artikel,client,später,getpocket

carsonip commented 6 years ago

Added you to the beta test. Fixed some bugs. Let me know if you discover any issues! Thanks.

michaelber commented 6 years ago

Thanks, but I didn't receive an invitation for the beta test and I also don't see the Skill in my Alexa app.

carsonip commented 6 years ago

Then let me publish the skill. I think it will be fine.

carsonip commented 6 years ago

Having some issues with the certification. I'll fix it and re-submit it soon. Will let you know when it goes live.

michaelber commented 6 years ago

Ok, thanks!

carsonip commented 6 years ago

@michaelber Sorry to keep you waiting. Finally it has passed the certification. Please check if the skill is available to you. I am going to add new features and will need your help soon.

michaelber commented 6 years ago

Great, yes its available and seems to work well :)

carsonip commented 6 years ago

@michaelber Improvements incoming! Please help me translate the new ARTICLE_FINISH and ARTICLE_FINISH_REPROMPT. You may see the change here: https://github.com/carsonip/alexa-pocket/commit/d81238e2e1c312342dbda19b4bac84c605cb0aba#diff-be0338eda7a5cf187e1faf68fe73cd95 The new version can be deployed as soon as we have the German translation ready. We can soon read the next article in list after finishing one. Thanks.

michaelber commented 6 years ago

Nice! Here you go with the translations:

"ARTICLE_FINISH": "Du hast das Ende des Artikels erreicht. Möchtest du ihn archivieren?", "ARTICLE_FINISH_REPROMPT": "Sage Ja zum Archivieren, oder sage Nein um nichts zu tun. Möchtest du den Artikel archivieren?",

carsonip commented 6 years ago

@michaelber Sorry for the unclear instructions. The new "ARTICLE_FINISH" is "That's all for this article. Say, Archive, or, Next. " and the new "ARTICLE_FINISH_REPROMPT" is "Say, Archive, or, Next. ". Please translate these. Thanks! Also, please check if we need to add more utterances.

        {
          "name": "Next",
          "samples": [
            "weiter",
            "nächster"
          ]
        },
        {
          "name": "Archive",
          "samples": [
            "archivieren"
          ]
},
michaelber commented 6 years ago

Ah, my mistake ;-)

"ARTICLE_FINISH": "Du hast das Ende des Artikels erreicht. Sage, archivieren, oder, weiter", "ARTICLE_FINISH_REPROMPT": "Sage, archivieren, oder, weiter",

The utterances are fine this way.

carsonip commented 6 years ago

Got it. Submitted for certification. Thanks!

carsonip commented 6 years ago

The last update of reading the next article was deployed. I have added tag support just now. I'll need some help in translation again.

Please look at this diff for changes in "RetrieveWithTag" intent and "ReadRandomArticle" intent: https://github.com/carsonip/alexa-pocket/commit/5bd05af6797fc881fe9c232743cfa0a4a4174e27#diff-8f671bf473d6db1bb70336e0f2906c5e

For the skill description, I have changed from this:

... After finish reading the article, you may archive the article.\n\nAlternatively, you can say \"Alexa, ask My Pocket to read me an article\" for a randomly picked article in your Pocket.\n\nIf you would like to link / re-link your Pocket account, say \"Alexa, ask My Pocket to link account\". ...

to this (the changes are in bold):

... After finish reading the article, you may say \"archive\" to archive the article, or say \"next\" to read the next article in list.\n\nAlternatively, you can say \"Alexa, ask My Pocket to read me an article\" for a randomly picked article in your Pocket.\n\nTo retrieve articles under a certain tag, e.g. alexa, you can say \"Alexa, ask My Pocket for articles with tag alexa\", or \"Alexa, ask My Pocket for a random article with tag alexa\". The only possible tags are \"alexa\", \"amazon\", and \"echo\". The tag must be lowercase in Pocket.\n\nIf you would like to link / re-link your Pocket account, say \"Alexa, ask My Pocket to link account\".\n\n ...

Please feel free to submit a pull request. Your contribution deserves to be recognized. If you feel like just replying here, it is also okay. Thank you so much.

michaelber commented 6 years ago

I created a pull request - hope the changes are correct :-)

9

carsonip commented 6 years ago

I was thinking: why not just perfect it? That's why I've made a lot of changes today which should improve the usability of the skill. Please do a PR for DE translation when you are free.

Details of the changes: The language strings: https://github.com/carsonip/alexa-pocket/commit/3736942c34c7863629513307d4e48ab2e8ecc22c#diff-021127147bdf8c487431663cba476876 The model: https://github.com/carsonip/alexa-pocket/commit/3736942c34c7863629513307d4e48ab2e8ecc22c#diff-8f671bf473d6db1bb70336e0f2906c5e The description: https://github.com/carsonip/alexa-pocket/commit/3736942c34c7863629513307d4e48ab2e8ecc22c#diff-007f269731f1c3d0029a55392c493a27 Description changed from

After finish reading the article, you may say \"archive\" to archive the article, or say \"next\" to read the next article in list.

to

After finish reading the article, perform an action like archive, unarchive, favorite, unfavorite, or delete, or say \"next\" to read the next article in list.

carsonip commented 6 years ago

I notice that there is one missing translation: "by", which is used at the start of the article to introduce the authors. Any idea? Is it "von"? It isn't handled in the code yet so you may just answer me here. Thanks!

michaelber commented 6 years ago

Yes, "von" is the correct translation.