how do links in localization files work?

Translation help and language issues

how do links in localization files work?

Postby tinboye » Fri Aug 06, 2010 5:07 am

Hello,

I need a bit of help understanding part of the code within this file.
I wanted to add to the updating instructions with my own links and descriptions
I have already added the queries into the database

Code: Select all

    INSERT INTO `roster_config`
    VALUES ( 6101, 'guildprofiler', 'http://www.rpgoutfitter.com/downloads/rpgo-GuildProfiler-latest.zip', 'text{128|30', 'data_links' ) ;# 1 row(s) affected.
    INSERT INTO `roster_config`
    VALUES ( 6102, 'PVPlog', 'http://www.wowroster.net/Downloads/WoW%20AddOns/PvPLog-3.1.0.zip', 'text{128|30', 'data_links' ) ;# 1 row(s) affected.



and within the enUS.php
I added

Code: Select all

    $lang['admin']['guildprofiler'] = "GuildProfiler download link|URL to download GuildProfiler";
    $lang['admin']['PVPlog'] = "PVP Log download link|URL to download PVP Log";



the part i do not get is how its echoe'd
the code shows
Code: Select all
    <li>Use <a href="%1$s" target="_blank">UniUploader</a><br />
    %2$s</li>



which in turn shows
Use UniUploader
then the instructions from

then
<li>Download <a href="%3$s" target="_blank">Character Profiler</a></li>
which links to the data from the sql

but how do i have it so i can have the other links i added associate to the rest

the code i have now is

Code: Select all
<li>Use <a href="%1$s" target="_blank">UniUploader</a><br />
    %2$s</li>
    </ul>
    <strong>Updating instructions:</strong>
    <ol>
    <li>Download <a href="%3$s" target="_blank">Character Profiler</a></li>
    <li>Download <a href="%4$s" target="_blank">Guild Profiler</a></li>
    <li>Download <a href="%5$s" target="_blank">PVP Log</a></li>
    <li>Extract zips into its own directory in C:\Program Files\World of Warcraft\Interface\Addons\</li>



the <a href="%4$s" target="_blank"> and <a href="%5$s" target="_blank"> is where i need to know what numbers would associate to those sql queries i added. I dont see how that part of the coding works.

how does "%3$s" know to look at

Code: Select all
INSERT INTO `renprefix_config` VALUES (6100, 'profiler', 'http://www.rpgoutfitter.com/Addons/CharacterProfiler.cfm', 'text{128|30', 'data_links');


within the database

any help would be appreciated

thanks
tinboye
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Sat Nov 03, 2007 9:29 am

Re: how do links in localization files work?

Postby PleegWat » Fri Aug 06, 2010 6:18 pm

You cannot directly reference configuration from the localization files. You need to edit the file using the localization key.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: how do links in localization files work?

Postby tinboye » Fri Aug 13, 2010 4:19 am

which file do i need to edit then for the
Updating instructions?
tinboye
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Sat Nov 03, 2007 9:29 am


Return to Languages / Localization

Who is online

Users browsing this forum: No registered users and 0 guests

cron