Skip to content

Commit

Permalink
[lang] Uniformize "not available" string usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hudokkow committed Jul 16, 2018
1 parent 5c5b206 commit ce3fe57
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 29 deletions.
29 changes: 19 additions & 10 deletions addons/resource.language.en_gb/resources/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,7 @@ msgctxt "#160"
msgid "Free"
msgstr ""

#: addons/skin.estuary/xml/DialogPVRRadioRDSInfo.xml
msgctxt "#161"
msgid "Unavailable"
msgstr ""
#empty string with id 161

msgctxt "#162"
msgid "Tray open"
Expand Down Expand Up @@ -1958,11 +1955,7 @@ msgctxt "#415"
msgid "Downloading thumbnail..."
msgstr ""

#: xbmc/music/dialogs/GUIDialogMusicInfo.cpp
#: addons/skin.estuary/xml/DialogFullScreenInfo.xml
msgctxt "#416"
msgid "Not available"
msgstr ""
#empty string with id 10

msgctxt "#417"
msgid "View: Big icons"
Expand Down Expand Up @@ -4785,7 +4778,23 @@ msgctxt "#10004"
msgid "Settings"
msgstr ""

#empty strings from id 10005 to 10006
#: addons/skin.estouchy/xml/DialogAddonInfo.xml
#: addons/skin.estuary/xml/DialogPVRRadioRDSInfo.xml
#: addons/skin.estuary/xml/DialogSeekBar.xml
#: xbmc/LangInfo.cpp
#: xbmc/addons/Scraper.cpp
#: xbmc/addons/addons/GUIDialogAddonInfo.cpp
#: xbmc/guilib/guiinfo/SystemGUIInfo.cpp
#: xbmc/utils/SystemInfo.cpp
msgctxt "#10005"
msgid "Not available"
msgstr ""

#. Abbreviation of "Not Available"
#: xbmc/utils/SystemInfo.cpp
msgctxt "#10006"
msgid "N/A"
msgstr ""

#: xbmc/guilib/WindowIDs.h
msgctxt "#10007"
Expand Down
8 changes: 4 additions & 4 deletions addons/skin.estouchy/xml/DialogAddonInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<posy>0</posy>
<width>730</width>
<height>25</height>
<label fallback="416">$INFO[ListItem.AddonType]</label>
<label fallback="10005">$INFO[ListItem.AddonType]</label>
<align>left</align>
<aligny>center</aligny>
<font>font20</font>
Expand All @@ -129,7 +129,7 @@
<posy>30</posy>
<width>730</width>
<height>25</height>
<label fallback="416">$INFO[ListItem.AddonCreator]</label>
<label fallback="10005">$INFO[ListItem.AddonCreator]</label>
<align>left</align>
<aligny>center</aligny>
<font>font20</font>
Expand All @@ -152,7 +152,7 @@
<posy>60</posy>
<width>730</width>
<height>25</height>
<label fallback="416">$INFO[ListItem.AddonVersion]</label>
<label fallback="10005">$INFO[ListItem.AddonVersion]</label>
<align>left</align>
<aligny>center</aligny>
<font>font20</font>
Expand All @@ -175,7 +175,7 @@
<posy>90</posy>
<width>730</width>
<height>25</height>
<label fallback="416">$INFO[ListItem.AddonSummary]</label>
<label fallback="10005">$INFO[ListItem.AddonSummary]</label>
<align>left</align>
<aligny>center</aligny>
<font>font20</font>
Expand Down
12 changes: 6 additions & 6 deletions addons/skin.estuary/xml/DialogPVRRadioRDSInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<width>704</width>
<height>25</height>
<aligny>center</aligny>
<label fallback="161">$INFO[RDS.Artist]</label>
<label fallback="10005">$INFO[RDS.Artist]</label>
<scrollout>false</scrollout>
<pauseatend>2000</pauseatend>
<visible>String.IsEmpty(RDS.Band)</visible>
Expand Down Expand Up @@ -93,7 +93,7 @@
<width>704</width>
<height>25</height>
<aligny>center</aligny>
<label fallback="161">$INFO[RDS.Title]</label>
<label fallback="10005">$INFO[RDS.Title]</label>
<scrollout>false</scrollout>
<pauseatend>2000</pauseatend>
</control>
Expand Down Expand Up @@ -137,7 +137,7 @@
<width>704</width>
<height>25</height>
<aligny>center</aligny>
<label fallback="161">$INFO[RDS.Composer]</label>
<label fallback="10005">$INFO[RDS.Composer]</label>
<scrollout>false</scrollout>
<pauseatend>2000</pauseatend>
</control>
Expand All @@ -157,7 +157,7 @@
<width>704</width>
<height>25</height>
<aligny>center</aligny>
<label fallback="161">$INFO[RDS.Title]</label>
<label fallback="10005">$INFO[RDS.Title]</label>
<scrollout>false</scrollout>
<pauseatend>2000</pauseatend>
</control>
Expand All @@ -178,7 +178,7 @@
<width>704</width>
<height>29</height>
<pagecontrol></pagecontrol>
<label fallback="161">$INFO[RDS.Artist]</label>
<label fallback="10005">$INFO[RDS.Artist]</label>
<autoscroll time="2000" delay="3000" repeat="5000">true</autoscroll>
<visible>String.IsEmpty(RDS.Band) + !String.IsEmpty(RDS.Artist)</visible>
</control>
Expand Down Expand Up @@ -242,7 +242,7 @@
<width>300</width>
<height>25</height>
<aligny>center</aligny>
<label fallback="161">$INFO[RDS.Conductor]</label>
<label fallback="10005">$INFO[RDS.Conductor]</label>
<scrollout>false</scrollout>
<pauseatend>2000</pauseatend>
<visible>!String.IsEmpty(RDS.Conductor)</visible>
Expand Down
2 changes: 1 addition & 1 deletion addons/skin.estuary/xml/DialogSeekBar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
<top>-207</top>
<right>80</right>
<height>290</height>
<label fallback="416">$INFO[VideoPlayer.Tagline,[B],[/B][CR]]$INFO[VideoPlayer.Plot]</label>
<label fallback="10005">$INFO[VideoPlayer.Tagline,[B],[/B][CR]]$INFO[VideoPlayer.Plot]</label>
<align>left</align>
<autoscroll delay="5000" repeat="7500" time="5000"></autoscroll>
</control>
Expand Down
4 changes: 2 additions & 2 deletions xbmc/LangInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ bool CLangInfo::Load(const std::string& strLanguage)
CRegion region(m_defaultRegion);
region.m_strName = XMLUtils::GetAttribute(pRegion, "name");
if (region.m_strName.empty())
region.m_strName="N/A";
region.m_strName=g_localizeStrings.Get(10005); // Not available

if (pRegion->Attribute("locale"))
region.m_strRegionLocaleName = pRegion->Attribute("locale");
Expand Down Expand Up @@ -916,7 +916,7 @@ void CLangInfo::GetRegionNames(std::vector<std::string>& array)
{
std::string strName=region.first;
if (strName=="N/A")
strName=g_localizeStrings.Get(416);
strName=g_localizeStrings.Get(10005); // Not available
array.emplace_back(std::move(strName));
}
}
Expand Down
2 changes: 1 addition & 1 deletion xbmc/addons/GUIDialogAddonInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ bool CGUIDialogAddonInfo::ShowDependencyList(const std::vector<ADDON::Dependency
else
{
CFileItemPtr item(new CFileItem(it.id));
item->SetLabel2(g_localizeStrings.Get(161));
item->SetLabel2(g_localizeStrings.Get(10005)); // Not available
items.Add(item);
}
}
Expand Down
2 changes: 1 addition & 1 deletion xbmc/addons/Scraper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ EPISODELIST CScraper::GetEpisodeList(XFILE::CCurlFile &fcurl, const CScraperUrl
ep.iEpisode = atoi(strEpNum.c_str());
ep.iSubepisode = (dot != std::string::npos) ? atoi(strEpNum.substr(dot + 1).c_str()) : 0;
if (!XMLUtils::GetString(pxeMovie, "title", scurlEp.strTitle) || scurlEp.strTitle.empty())
scurlEp.strTitle = g_localizeStrings.Get(416);
scurlEp.strTitle = g_localizeStrings.Get(10005); // Not available
XMLUtils::GetString(pxeMovie, "id", scurlEp.strId);

for (; pxeLink && pxeLink->FirstChild(); pxeLink = pxeLink->NextSiblingElement("url"))
Expand Down
4 changes: 2 additions & 2 deletions xbmc/guilib/guiinfo/SystemGUIInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ std::string CSystemGUIInfo::GetSystemHeatInfo(int info) const
switch(info)
{
case SYSTEM_CPU_TEMPERATURE:
return m_cpuTemp.IsValid() ? g_langInfo.GetTemperatureAsString(m_cpuTemp) : "?";
return m_cpuTemp.IsValid() ? g_langInfo.GetTemperatureAsString(m_cpuTemp) : g_localizeStrings.Get(10005); // Not available
case SYSTEM_GPU_TEMPERATURE:
return m_gpuTemp.IsValid() ? g_langInfo.GetTemperatureAsString(m_gpuTemp) : "?";
return m_gpuTemp.IsValid() ? g_langInfo.GetTemperatureAsString(m_gpuTemp) : g_localizeStrings.Get(10005);
case SYSTEM_FAN_SPEED:
text = StringUtils::Format("%i%%", m_fanSpeed * 2);
break;
Expand Down
4 changes: 2 additions & 2 deletions xbmc/utils/SystemInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,9 @@ std::string CSysInfo::GetHddSpaceInfo(int& percent, int drive, bool shortText)
else
{
if (shortText)
strRet = "N/A";
strRet = g_localizeStrings.Get(10006); // N/A
else
strRet = g_localizeStrings.Get(161);
strRet = g_localizeStrings.Get(10005); // Not available
}
return strRet;
}
Expand Down

0 comments on commit ce3fe57

Please sign in to comment.