Make Wikia Links Translatable (#7036)

* Wikia Links

* Update contrib.json (Added comma)

* Implement @Alys's Suggestions

* conLearnLink -> conLearnURL

* add link to plans.jade

* Appended "URL" to locale strings with URLs

* Add 's'
This commit is contained in:
AccioBooks 2016-09-29 06:57:44 -05:00 committed by Alys
parent 257e932bc3
commit c2eb113672
19 changed files with 43 additions and 42 deletions

View file

@ -82,11 +82,11 @@ function($rootScope, User, $timeout, $state, Analytics) {
}, {
element: ".meter.mana",
title: window.env.t('spells'),
content: window.env.t('spellsText') + " <a target='_blank' href='http://habitica.wikia.com/wiki/Todos'>" + window.env.t('toDo') + "</a>."
content: window.env.t('spellsText')
}, {
orphan: true,
title: window.env.t('readMore'),
content: window.env.t('moreClass') + " <a href='http://habitica.wikia.com/wiki/Class_System' target='_blank'>Wikia</a>.",
content: window.env.t('moreClass'),
final: true
}
]

View file

@ -11,6 +11,7 @@
"unsubChallenge": "Broken Challenge Link: this task was part of a challenge, but you have unsubscribed from the challenge. What to do with the orphan tasks?",
"challengeWinner": "Was the winner in the following challenges",
"challenges": "Challenges",
"challengesLink": "<a href='http://habitica.wikia.com/wiki/Challenges' target='_blank'>Challenges</a>",
"noChallenges": "No challenges yet, visit",
"toCreate": "to create one.",
"selectWinner": "Select a winner and close the challenge:",

View file

@ -169,7 +169,7 @@
"commGuideLink01description": "a guild for new users to ask questions!",
"commGuideLink02": "The Back Corner Guild",
"commGuideLink02description": "a guild for the discussion of long or sensitive topics.",
"commGuideLink03": "The Wiki",
"commGuideLink03": "<a href='http://habitica.wikia.com/wiki/Habitica_Wiki' target='_blank'>The Wiki</a>",
"commGuideLink03description": "the biggest collection of information about Habitica.",
"commGuideLink04": "GitHub",
"commGuideLink04description": "for bug reports or helping code programs!",

View file

@ -54,8 +54,10 @@
"playerTiers": "Player Tiers",
"tier": "Tier",
"visitHeroes": "Visit the Hall of Heroes (contributors and backers)",
"conLearn": "Learn more about contributor rewards",
"conLearn": "<a href='http://habitica.wikia.com/wiki/Contributor_Rewards' target='_blank'>Learn more about contributor rewards</a>",
"conLearnHow": "Learn how to contribute to Habitica",
"conLearnURL": "http://habitica.wikia.com/wiki/Contributing_to_Habitica",
"conRewardsURL": "http://habitica.wikia.com/wiki/Contributor_Rewards",
"surveysSingle": "Helped Habitica grow, either by filling out a survey or helping with a major testing effort. Thank you!",
"surveysMultiple": "Helped Habitica grow on <%= surveys %> occasions, either by filling out a survey or helping with a major testing effort. Thank you!",
"currentSurvey": "Current Survey",

View file

@ -20,17 +20,17 @@
"chores": "Chores",
"clearBrowserData": "Clear Browser Data",
"communityBug": "Submit Bug",
"communityExtensions": "Add-ons & Extensions",
"communityExtensions": "<a href='http://habitica.wikia.com/wiki/App_and_Extension_Integrations' target='_blank'>Add-ons & Extensions</a>",
"communityFacebook": "Facebook",
"communityFeature": "Request Feature",
"communityForum": "Forum",
"communityForum": "<a target='_blank' href='http://habitica.wikia.com/wiki/Special:Forum'>Forum</a>",
"communityKickstarter": "Kickstarter",
"communityReddit": "Reddit",
"companyAbout": "How it Works",
"companyBlog": "Blog",
"devBlog": "Developer Blog",
"companyDonate": "Donate",
"companyExtensions": "Extensions",
"companyExtensions": "<a href='http://habitica.wikia.com/wiki/App_and_Extension_Integrations' target='_blank'>Extensions</a>",
"companyPrivacy": "Privacy",
"companyTerms": "Terms",
"companyVideos": "Videos",

View file

@ -3,7 +3,8 @@
"stringNotFound": "String '<%= string %>' not found.",
"titleIndex": "Habitica | Your Life The Role Playing Game",
"habitica": "Habitica",
"habiticaLink": "<a href='http://habitica.wikia.com/wiki/Habitica' target='_blank'>Habitica</a>",
"titleTasks": "Tasks",
"titleAvatar": "Avatar",
"titleBackgrounds": "Backgrounds",
@ -77,6 +78,8 @@
"gems": "Gems",
"gemButton": "You have <%= number %> Gems.",
"moreInfo": "More Info",
"moreInfoChallengesURL": "http://habitica.wikia.com/wiki/Challenges",
"moreInfoTagsURL": "http://habitica.wikia.com/wiki/Tags",
"showMoreMore": "(show more)",
"showMoreLess": "(show less)",
"gemsWhatFor": "Click to buy Gems! Gems let you purchase special items like Quests, avatar customizations, and seasonal equipment.",

View file

@ -6,11 +6,12 @@
"innTextBroken": "You're resting in the Inn, I guess... While checked-in, your Dailies won't hurt you at the day's end, but they will still refresh every day... If you are participating in a Boss Quest, the Boss will still damage you for your party mates' missed Dailies... unless they are also in the Inn... Also, your own damage to the Boss (or items collected) will not be applied until you check out of the Inn... so tired...",
"lfgPosts": "Looking for Group (Party Wanted) Posts",
"tutorial": "Tutorial",
"glossary": "Glossary",
"glossary": "<a target='_blank' href='http://habitica.wikia.com/wiki/Glossary'>Glossary</a>",
"wiki": "Wiki",
"wikiLink": "<a target='_blank' href='http://habitica.wikia.com/'>Wiki</a>",
"reportAP": "Report a Problem",
"requestAF": "Request a Feature",
"community": "Community Forum",
"community": "<a target='_blank' href='http://habitica.wikia.com/wiki/Special:Forum'>Community Forum</a>",
"dataTool": "Data Display Tool",
"resources": "Resources",
"askQuestionNewbiesGuild": "Ask a Question (Newbies Guild)",
@ -73,6 +74,7 @@
"createGuild": "Create Guild",
"guild": "Guild",
"guilds": "Guilds",
"guildsLink": "<a href='http://habitica.wikia.com/wiki/Guilds' target='_blank'>Guilds</a>",
"sureKick": "Do you really want to remove this member from the party/guild?",
"optionalMessage": "Optional message",
"yesRemove": "Yes, remove them",

View file

@ -65,9 +65,9 @@
"autoAllocate": "Auto Allocate",
"autoAllocateText": "If 'automatic allocation' is checked, your avatar gains stats automatically based on your tasks' attributes, which you can find in <strong>TASK > Edit > Advanced > Attributes</strong>. Eg, if you hit the gym often, and your 'Gym' Daily is set to 'Strength', you'll gain Strength automatically.",
"spells": "Spells",
"spellsText": "You can now unlock class-specific spells. You'll see your first at level 11. Your mana replenishes 10 points per day, plus 1 point per completed ",
"spellsText": "You can now unlock class-specific spells. You'll see your first at level 11. Your mana replenishes 10 points per day, plus 1 point per completed <a target='_blank' href='http://habitica.wikia.com/wiki/Todos'>To-Do</a>.",
"toDo": "To-Do",
"moreClass": "For more information on the class-system, see",
"moreClass": "For more information on the class-system, see <a href='http://habitica.wikia.com/wiki/Class_System' target='_blank'>Wikia</a>.",
"tourWelcome": "Welcome to Habitica! This is your To-Do list. Check off a task to proceed!",
"tourExp": "Great job! Checking off a task gives you Experience and Gold!",

View file

@ -53,7 +53,7 @@ mixin petList(eggSource, potionSource)
each t,k in env.Content.specialPets
- var egg = k.split('-')[0], pot = k.split('-')[1]
button(ng-if='user.items.pets["#{egg}-#{pot}"]', class="pet-button Pet-#{egg}-#{pot}", ng-class='{active: user.items.currentPet == "#{egg}-#{pot}"}', ng-click='choosePet("#{egg}", "#{pot}")', popover=env.t(t), popover-trigger='mouseenter', popover-placement='bottom')
a(target='_blank', href='http://habitica.wikia.com/wiki/Contributing_to_Habitica')
a(target='_blank', href=env.t('conLearnURL'))
button(ng-if='!user.items.pets["Dragon-Hydra"]', class="pet-button pet-not-owned", popover-trigger='mouseenter', popover-placement='right', popover=env.t('rarePetPop1'), popover-title=env.t('rarePetPop2'))
.PixelPaw-Gold

View file

@ -3,7 +3,7 @@
.panel-heading
h3.panel-title=env.t('challenges')
|&nbsp;
a.pull-right(target='_blank', href='http://habitica.wikia.com/wiki/Challenges')
a.pull-right(target='_blank', href=env.t('moreInfoChallengesURL'))
small=env.t('moreInfo')
.panel-body.modal-fixed-height(bindonce='group.challenges')
div(ng-if='group.challenges.length > 0')

View file

@ -149,7 +149,7 @@ script(type='text/ng-template', id='partials/options.social.challenges.html')
ng-model='newChallenge.shortName', placeholder=env.t('challengeTag'), required
ng-disabled='insufficientGemsForTavernChallenge()')
|&nbsp;
a.hint.vertical-20(target='_blank', href='http://habitica.wikia.com/wiki/Tags',
a.hint.vertical-20(target='_blank', href=env.t('moreInfoTagsURL'),
popover=env.t('challengeTagPop'), popover-trigger='mouseenter', popover-placement='right')
=env.t('moreInfo')

View file

@ -39,13 +39,13 @@
a(target='_blank', href='https://vimeo.com/57654086')=env.t('tutorial')
tr
td
a(target='_blank', href='http://habitica.wikia.com/wiki/FAQ')=env.t('FAQ')
a(target='_blank', href='https://habitica.com/static/FAQ')=env.t('FAQ')
tr
td
a(target='_blank', href='http://habitica.wikia.com/wiki/Glossary')=env.t('glossary')
!=env.t('glossary')
tr
td
a(target='_blank', href='http://habitica.wikia.com/')=env.t('wiki')
!=env.t('wikiLink')
tr
td
a(target='_blank', href='https://oldgods.net/habitrpg/habitrpg_user_data_display.html')=env.t('dataTool')
@ -57,7 +57,7 @@
a(target='_blank', href='https://trello.com/c/odmhIqyW/440-read-first-table-of-contents')= ' ' + env.t('requestAF')
tr
td
a(target='_blank', href='http://habitica.wikia.com/wiki/Special:Forum')=env.t('community')
!=env.t('community')
tr
td
a(target='_blank', href='https://habitica.com/#/options/groups/guilds/5481ccf3-5d2d-48a9-a871-70a7380cee5a')=env.t('askQuestionNewbiesGuild')
@ -71,12 +71,10 @@
|<a href='/#/options/groups/hall'>
=env.t('visitHeroes')
|</a> <br />
|<a href='http://habitica.wikia.com/wiki/Contributor_Rewards' target='_blank'>
=env.t('conLearn')
|</a> <br />
|<a href='http://habitica.wikia.com/wiki/Contributing_to_Habitica' target='_blank'>
=env.t('conLearnHow')
|</a>
!=env.t('conLearn')
br
a(href=env.t('conLearnURL'), target='_blank')
=env.t('conLearnHow')
table.table.table-striped.panel-tiers
tr
td

View file

@ -29,7 +29,7 @@ footer.footer(ng-controller='FooterCtrl')
li
a(target='_blank', href='http://blog.habitrpg.com/')=env.t('tumblr')
li
a(href='http://habitica.wikia.com/wiki/App_and_Extension_Integrations', target='_blank')=env.t('companyExtensions')
!=env.t('companyExtensions')
li
a(href='/static/faq/')=env.t('FAQ')
li
@ -52,9 +52,9 @@ footer.footer(ng-controller='FooterCtrl')
li
a(target='_blank', href='https://trello.com/c/odmhIqyW/440-read-first-table-of-contents')=env.t('communityFeature')
li
a(href='http://habitica.wikia.com/wiki/App_and_Extension_Integrations', target='_blank')=env.t('communityExtensions')
!=env.t('communityExtensions')
li
a(target='_blank', href='http://habitica.wikia.com/wiki/Special:Forum')=env.t('communityForum')
!=env.t('communityForum')
li
a(target='_blank', href='http://www.kickstarter.com/projects/lefnire/habitrpg-mobile')=env.t('communityKickstarter')
li

View file

@ -68,7 +68,7 @@ nav.toolbar(ng-controller='MenuCtrl')
li
a(target='_blank' href='https://trello.com/c/odmhIqyW/440-read-first-table-of-contents')=env.t('requestAF')
li
a(target='_blank' href='http://habitica.wikia.com/wiki/Contributing_to_Habitica')=env.t('contributeToHRPG')
a(target='_blank' href=env.t('conLearnURL'))=env.t('contributeToHRPG')
li
a(target='_blank' href=env.t('HabiticaWikiFrontPage'))=env.t('HabiticaWiki')
ul.toolbar-controls
@ -171,7 +171,7 @@ nav.toolbar(ng-controller='MenuCtrl')
li
a(target='_blank' href='https://trello.com/c/odmhIqyW/440-read-first-table-of-contents')=env.t('requestAF')
li
a(target='_blank' href='http://habitica.wikia.com/wiki/Contributing_to_Habitica')=env.t('contributeToHRPG')
a(target='_blank' href=env.t('conLearnURL'))=env.t('contributeToHRPG')
li
a(target='_blank' href=env.t('HabiticaWikiFrontPage'))=env.t('HabiticaWiki')
ul.toolbar-subscribe(ng-if='!user.purchased.plan.customerId')

View file

@ -6,12 +6,6 @@ mixin gemButton(isGemsModal)
.Pet_Currency_Gem2x.Gems
=env.t('gemButton', {number: '{{user.balance * 4 | number:0}}'})
mixin aLink(url, label)
if mobile
a(href="", ng-click="externalLink('#{url}')")= label
else
a(href='#{url}', target='_blank')= label
mixin previewMarkdown(text)
.panel.panel-warning
.panel-heading=env.t('msgPreviewHeading')

View file

@ -112,7 +112,7 @@ script(id='modals/achievements/contributor.html', type='text/ng-template')
h3(style='margin-bottom:0')=env.t('modalContribAchievement')
+achievementAvatar('boot',0)
!=env.t('contribModal', {name: "{{user.profile.name}}", level: "{{user.contributor.level}}"}) + ' '
a(href='http://habitica.wikia.com/wiki/Contributor_Rewards' target='_blank')=env.t('contribLink')
a(href=env.t('conRewardsURL') target='_blank')=env.t('contribLink')
br
button.btn.btn-primary(style='margin-top:1em' ng-click='$close()')=env.t('huzzah')
+achievementFooter

View file

@ -29,7 +29,8 @@ div(ng-if='::profile.contributor.level || user._id == profile._id')
small
=env.t('contribText')
|&nbsp;
+aLink('http://habitica.wikia.com/wiki/Contributing_to_Habitica', env.t('readMore'))
a(href=env.t('conLearnURL'), target='_blank')
=env.t('readMore')
| .
hr

View file

@ -336,7 +336,7 @@ block content
|:&nbsp;
=env.t('commGuideLink02description')
li
a(href='http://habitica.wikia.com/wiki/Habitica_Wiki' target='_blank')=env.t('commGuideLink03')
!=env.t('commGuideLink03')
|:&nbsp;
=env.t('commGuideLink03description')
li

View file

@ -15,15 +15,15 @@ block content
p
=env.t('indivPlan1')
|&nbsp;
a(href='http://habitica.wikia.com/wiki/Guilds' target='_blank')=env.t('guilds')
!=env.t('guildsLink')
= ' ' + env.t('and') + ' '
a(href='http://habitica.wikia.com/wiki/Challenges' target='_blank')=env.t('challenges')
!=env.t('challengesLink')
|&nbsp;
=env.t('indivPlan2')
p
=env.t('groupText1')
|&nbsp;
a(href='http://habitica.wikia.com/wiki/Habitica' target='_blank')=env.t('habitica')
!=env.t('habiticaLink')
|.&nbsp;
=env.t('groupText2')