Skip to content

Commit

Permalink
Message for "no cards" when printing should not talk about adding a card
Browse files Browse the repository at this point in the history
  • Loading branch information
rafdulaf committed Dec 22, 2019
1 parent a66c844 commit dabc2e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions studio/card_equipment/resources/js/card_equipment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var CardEquipment = {
_i18n: {
'fr': {
'tab': "Équipe<wbr/>ment",
'nocard': "Vous n'avez aucune carte pour le moment. Cliquez sur le bouton + en haut pour en creer une.",
'nocard': "Vous n'avez aucune carte pour le moment.",
'nocard2': " Cliquez sur le bouton + en haut pour en creer une.",
'printnocard': "Vous n'avez aucune carte pour le moment",
'newcard': "Créer une carte",
'print': "Imprimer des cartes",
Expand Down Expand Up @@ -49,7 +50,8 @@ var CardEquipment = {
},
'en': {
'tab': "Equip<wbr/>ment",
'nocard': "You have no card for the moment. Click on the + button in the header to create one.",
'nocard': "You have no card for the moment.",
'nocard2': " Click on the + button in the header to create one.",
'printnocard': "You have no card for the moment",
'newcard': "Create a new card",
'print': "Print cards",
Expand Down Expand Up @@ -138,7 +140,7 @@ var CardEquipment = {
}
else
{
html += "<div class=\"nocards\">" + CardEquipment._i18n[Language].nocard + "</div>";
html += "<div class=\"nocards\">" + CardEquipment._i18n[Language].nocard + (withEditLink !== false ? CardEquipment._i18n[Language].nocard2 : '') + "</div>";
}

if (!withEditLink)
Expand Down
8 changes: 5 additions & 3 deletions studio/card_spell/resources/js/card_spell.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var CardSpell = {
_i18n: {
'fr': {
'tab': "Sort",
'nocard': "Vous n'avez aucune carte pour le moment. Cliquez sur le bouton + en haut pour en creer une.",
'nocard': "Vous n'avez aucune carte pour le moment.",
'nocard2': " Cliquez sur le bouton + en haut pour en creer une.",
'printnocard': "Vous n'avez aucune carte pour le moment",
'newcard': "Créer une carte",
'print': "Imprimer des cartes",
Expand Down Expand Up @@ -40,7 +41,8 @@ var CardSpell = {
},
'en': {
'tab': "Spell",
'nocard': "You have no card for the moment. Click on the + button in the header to create one.",
'nocard': "You have no card for the moment.",
'nocard2': " Click on the + button in the header to create one.",
'printnocard': "You have no card for the moment",
'newcard': "Create a new card",
'print': "Print cards",
Expand Down Expand Up @@ -120,7 +122,7 @@ var CardSpell = {
}
else
{
html += "<div class=\"nocards\">" + CardSpell._i18n[Language].nocard + "</div>";
html += "<div class=\"nocards\">" + CardSpell._i18n[Language].nocard + (withEditLink !== false ? CardSpell._i18n[Language].nocard2 : '') + "</div>";
}

if (!withEditLink)
Expand Down

0 comments on commit dabc2e8

Please sign in to comment.