[Wikidata-bugs] [Maniphest] [Commented On] T217258: Language handling for adding citations with citoid in wikidata

2019-02-28 Thread Mvolz
Mvolz added a comment.


  On thinking on this more, I think we can be quite greedy with label; we can 
set it at least in the guessed text language, user language, and English.  This 
is because we're dealing with publications published in a particular language 
when we create items, like books and journal articles, where an untranslated 
label wouldn't necessarily be a bad thing and even may be the most correct 
thing; i.e. for edition or translations items, you actually might want the 
title as published, not the translated title (as opposed to book, where you 
might want the name of the book as it was published in each given language.)

TASK DETAIL
  https://phabricator.wikimedia.org/T217258

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mvolz
Cc: Lucas_Werkmeister_WMDE, Pintoch, Aklapper, Mvolz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, Shangkuanlc, mobrovac, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T217258: Language handling for adding citations with citoid in wikidata

2019-02-27 Thread Mvolz
Mvolz added a comment.


  In T217258#4988550 , 
@Pintoch wrote:
  
  > If you need a mapping from ISO language codes to Wikimedia ones, 
Wikidata-Toolkit has such a mapping: 
https://github.com/Wikidata/Wikidata-Toolkit/blob/3e62f93b137c25961c5a12172c7f213a720ecb67/wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/interfaces/WikimediaLanguageCodes.java
  >
  > It might not be the most up to date mapping you can get though (I would be 
interested in updating it but I haven't investigated how to do that)
  
  
  This is great, thanks!
  
  In T217258#4988684 , 
@Lucas_Werkmeister_WMDE wrote:
  
  > For monolingual text values, you can fall back to `und` (undetermined) if 
the language is not recognized.
  >
  > For the label, I think it would be acceptable to use the English label – 
it’s fairly common for works (especially works of art) to have the label in a 
different language (for example, Q1061035 
’s German label is //La trahison des 
images//, the French title), and if I understand correctly this would be the 
label of an item for the citation, which should qualify as a work.
  >
  > For the Wikidata item, it’s probably best to omit the statement altogether 
(or use //unknown value//? but that usually means that the value is known to be 
unknown, which doesn’t really fit here) if no corresponding Wikidata item is 
found.
  
  
  

TASK DETAIL
  https://phabricator.wikimedia.org/T217258

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mvolz
Cc: Lucas_Werkmeister_WMDE, Pintoch, Aklapper, Mvolz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, Shangkuanlc, mobrovac, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T217258: Language handling for adding citations with citoid in wikidata

2019-02-27 Thread Mvolz
Mvolz added a comment.


  Default fallbacks:
  
  monolingual snak -> misc code.
  label -> fall back on en or user language - or both?

TASK DETAIL
  https://phabricator.wikimedia.org/T217258

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mvolz
Cc: Lucas_Werkmeister_WMDE, Pintoch, Aklapper, Mvolz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, Shangkuanlc, mobrovac, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T217258: Language handling for adding citations with citoid in wikidata

2019-02-27 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  For monolingual text values, you can fall back to `und` (undetermined) if the 
language is not recognized.
  
  For the label, I think it would be acceptable to use the English label – it’s 
fairly common for works (especially works of art) to have the label in a 
different language (for example, Q1061035 
’s German label is //La trahison des 
images//, the French title), and if I understand correctly this would be the 
label of an item for the citation, which should qualify as a work.
  
  For the Wikidata item, it’s probably best to omit the statement altogether 
(or use //unknown value//? but that usually means that the value is known to be 
unknown, which doesn’t really fit here) if no corresponding Wikidata item is 
found.

TASK DETAIL
  https://phabricator.wikimedia.org/T217258

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mvolz, Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Pintoch, Aklapper, Mvolz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, Shangkuanlc, mobrovac, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T217258: Language handling for adding citations with citoid in wikidata

2019-02-27 Thread Pintoch
Pintoch added a comment.


  If you need a mapping from ISO language codes to Wikimedia ones, 
Wikidata-Toolkit has such a mapping: 
https://github.com/Wikidata/Wikidata-Toolkit/blob/3e62f93b137c25961c5a12172c7f213a720ecb67/wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/interfaces/WikimediaLanguageCodes.java
  
  It might not be the most up to date mapping you can get though (I would be 
interested in updating it but I haven't investigated how to do that)

TASK DETAIL
  https://phabricator.wikimedia.org/T217258

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mvolz, Pintoch
Cc: Pintoch, Aklapper, Mvolz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, 
LawExplorer, _jensen, Shangkuanlc, mobrovac, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs