mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
make it actually translatable, and make the RTL version actually RTL. I would
appreciate some testing to see if it is correct since I don't do RTL personally. :) svn path=/trunk/kdebase/konqueror/; revision=259568
This commit is contained in:
parent
f1314366e5
commit
7e335271aa
3 changed files with 23 additions and 18 deletions
|
@ -284,7 +284,11 @@ QString KonqAboutPageFactory::plugins()
|
|||
if ( s_plugins_html )
|
||||
return *s_plugins_html;
|
||||
|
||||
QString res = loadFile( locate( "data", kapp->reverseLayout() ? "konqueror/about/plugins_rtl.html" : "konqueror/about/plugins.html" ));
|
||||
QString res = loadFile( locate( "data", kapp->reverseLayout() ? "konqueror/about/plugins_rtl.html" : "konqueror/about/plugins.html" ))
|
||||
.arg(i18n("Installed Plugins"))
|
||||
.arg(i18n("<td>Plugin</td><td>Description</td><td>File</td><td>Types</td>"))
|
||||
.arg(i18n("Installed"))
|
||||
.arg(i18n("<td>Mime Type</td><td>Description</td><td>Suffixes</td><td>Plugin</td>"));
|
||||
if ( res.isEmpty() )
|
||||
return res;
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Installed Plugins</title>
|
||||
<title>%1</title>
|
||||
<script language="Javascript"> <!--
|
||||
function listPlugins() {
|
||||
document.write("<table border=\"1\">");
|
||||
document.write("<tr><td>Plugin</td><td>Description</td><td>File</td><td>Types</td></tr>");
|
||||
document.write("<tr>%2</tr>");
|
||||
for (i = 0; i < navigator.plugins.length; i++)
|
||||
{
|
||||
document.write("<tr><td>"+navigator.plugins[i].name);
|
||||
|
@ -24,7 +24,7 @@ document.write("</table>");
|
|||
document.write("<br/><br/>");
|
||||
|
||||
document.write("<table border=\"1\">");
|
||||
document.write("<tr><td>Mime Type</td><td>Description</td><td>Suffixes</td><td>Plugin</td></tr>");
|
||||
document.write("<tr>%4</tr>");
|
||||
for (i = 0; i < navigator.mimeTypes.length; i++)
|
||||
{
|
||||
document.write("<tr><td>"+navigator.mimeTypes[i].type);
|
||||
|
@ -34,7 +34,7 @@ for (i = 0; i < navigator.mimeTypes.length; i++)
|
|||
document.write("</td><td>");
|
||||
// This could be enhanced to write the plugin name(s) by
|
||||
// searching through navigator.plugins[][]
|
||||
document.write("Installed.");
|
||||
document.write("%3");
|
||||
}
|
||||
document.write("</td></tr>");
|
||||
}
|
||||
|
|
|
@ -1,41 +1,42 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Installed Plugins</title>
|
||||
<title>%1</title>
|
||||
<script language="Javascript"> <!--
|
||||
function listPlugins() {
|
||||
document.write("<table border=\"1\">");
|
||||
document.write("<tr><td>Plugin</td><td>Description</td><td>File</td><td>Types</td></tr>");
|
||||
document.write("<tr>%2</tr>");
|
||||
for (i = 0; i < navigator.plugins.length; i++)
|
||||
{
|
||||
document.write("<tr><td>"+navigator.plugins[i].name);
|
||||
document.write("</td><td>"+navigator.plugins[i].description);
|
||||
document.write("</td><td>"+navigator.plugins[i].filename);
|
||||
document.write("</td><td><ul>");
|
||||
document.write("<tr><td><ul>");
|
||||
for (j = 0; j < navigator.plugins[i].length; j++)
|
||||
{
|
||||
document.write("<li>"+navigator.plugins[i][j].type+" - "
|
||||
+navigator.plugins[i][j].description+" ("
|
||||
+navigator.plugins[i][j].suffixes+")</li>");
|
||||
}
|
||||
document.write("</ul></td></tr>");
|
||||
document.write("</ul></td>");
|
||||
document.write("<td>"+navigator.plugins[i].filename);
|
||||
document.write("</td><td>"+navigator.plugins[i].description);
|
||||
document.write("</td><td>"+navigator.plugins[i].name);
|
||||
document.write("</td></tr>");
|
||||
}
|
||||
document.write("</table>");
|
||||
|
||||
document.write("<br/><br/>");
|
||||
|
||||
document.write("<table border=\"1\">");
|
||||
document.write("<tr><td>Mime Type</td><td>Description</td><td>Suffixes</td><td>Plugin</td></tr>");
|
||||
document.write("<tr>%4</tr>");
|
||||
for (i = 0; i < navigator.mimeTypes.length; i++)
|
||||
{
|
||||
document.write("<tr><td>"+navigator.mimeTypes[i].type);
|
||||
document.write("</td><td>"+navigator.mimeTypes[i].description);
|
||||
document.write("</td><td>"+navigator.mimeTypes[i].suffixes);
|
||||
document.write("<tr><td>");
|
||||
if (navigator.mimeTypes[i].enabledPlugin) {
|
||||
document.write("</td><td>");
|
||||
// This could be enhanced to write the plugin name(s) by
|
||||
// searching through navigator.plugins[][]
|
||||
document.write("Installed.");
|
||||
document.write("%3");
|
||||
}
|
||||
document.write("</td><td>"+navigator.mimeTypes[i].suffixes);
|
||||
document.write("</td><td>"+navigator.mimeTypes[i].description);
|
||||
document.write("</td><td>"+navigator.mimeTypes[i].type);
|
||||
document.write("</td></tr>");
|
||||
}
|
||||
document.write("</table>");
|
||||
|
|
Loading…
Reference in a new issue