Themabewertung:
  • 2 Bewertung(en) - 3 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5

HTC Animated Weather ins Deutsche übersetzen

Hey Freunde Smiley

Endlich kann ich mein "neues" 4s breaken Cool

Hab zu dem Widget eine Frage oder Idee:

- Kann man das Widget vllt so umschreiben, dass sich beim Klick auf die Uhr, die Iphone Wecker App öffnet?

Das wäre ein Traum! Laugh
Über jede Hilfe würde ich mich sehr freuen!

PS: Habe das ursprüngliche HTC Weather animated Widget
Zitieren

[quote='oldster' pid='1724534' dateline='1368363901']
Hi ich habe meine PerPageHtml Version mal wieder Überarbeitet Smiley

Läuft auf dem iPhone 4/5 und hat jetzt UniAW 6 bekommen. Schaut Euch einfach mal das Video an. Wer es haben möchte, kurze PN an mic

Hallo oldster ich habe mir das HTC animated Weather widget Version 1.4 auf mein iPhone 5s installiert und die Dateien Widget.html und translation.js umgeschrieben so das alles ins Deutsche übersetzt wurde nach eine update auf Version 1.5 läuft die Übersetzung nicht mehr wenn ich bei der Datei Widget.html die ZeLangTranslate = English in LangTranslate = German" verändere funktioniert weder die Übersetzung noch die Animation.
Hier sind meine Veränderten Dateien:
Widget.html :

<html>
<head><title>HTC</title>
<!--Moddified by Ludacrisvp Version iOS 7 Released 1-24-14 -->
<style>

SPAN#clock
{
font-family: Helvetica;
font-weight: bold;
color: #d1d1d1;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);
font-size: 26px;
}

SPAN#ampm
{
font-family: Helvetica;
font-weight: bold;
color: #d1d1d1;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);
font-size: 15px;
display:none;
}

TD#dateString
{
font-family: Helvetica;
font-weight: bold;
color: #d1d1d1;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);
font-size: 11px;
text-align:center;
}

TABLE#CalendarTable
{
font-family: Helvetica;
font-weight: bold;
color: #d1d1d1;
text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.7);
font-size: 11px;
text-align:center;
margin-top:-17px;
}

SPAN#calendar
{
font-family: Helvetica;
font-weight: bold;
color: #d1d1d1;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);
font-size: 14px;
position:absolute;
top:137px;
text-align:right;
width:300px;
}
</style>

<script type="text/javascript">
//var locale = 2487084 // Yahoo WOEID Weather code
//var isCelsius = false
//var useRealFeel = false
//var updateInterval = 30
//var showForecast = true
//var showWeatherAni = true
var showBackground = true
//var displayClock = true

</script>

<base href="Private/"/>
<script type="text/javascript">

var this_weekday_name_array = new Array("So","Mo","Di","Mi","Do","Fr","Sa")
var this_month_name_array = new Array("Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez")
var this_date_timestamp = new Date()
var this_weekday = this_date_timestamp.getDay()
var this_date = this_date_timestamp.getDate()
var this_month = this_date_timestamp.getMonth()
var this_year = this_date_timestamp.getYear()
if (this_year < 1000)
this_year+= 1900;
if (this_year==101)
this_year=2001;
var this_date_string = this_weekday_name_array[this_weekday] + " " + this_date + " " + this_month_name_array[this_month]//concat long date string

function init ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("clock").appendChild ( timeDisplay );
}

function updateClock ( )
{
//var TwentyFourHourClock = false
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );

// Pad the minutes and seconds with leading zeros, if required
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

if (TwentyFourHourClock == false){

var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM"
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
currentHours = ( currentHours == 0 ) ? 12 : currentHours;

if (timeOfDay == "PM"){
document.getElementById("ampm").src="pm.png"
}else{
document.getElementById("ampm").src="am.png"
}}
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;

// Update the time display
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;

document.getElementById("hr1").src="Digits/"+currentHours.charAt(0)+".png";
document.getElementById("hr2").src="Digits/"+currentHours.charAt(1)+".png";
document.getElementById("min1").src="Digits/"+currentMinutes.charAt(0)+".png";
document.getElementById("min2").src="Digits/"+currentMinutes.charAt(1)+".png";
}

function init2 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("ampm").appendChild ( timeDisplay );
}

function amPm ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );

// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";

// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;

// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;

// Compose the string for display
var currentTimeString = timeOfDay;

// Update the time display
document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
}

function init3 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("calendar").appendChild ( timeDisplay );
}

function daysInMonth(iMonth, iYear)
{
return 32 - new Date(iYear, iMonth, 32).getDate();
}

function zeroPad(num,count)
{
var numZeropad = num + '';
while(numZeropad.length < count) {
numZeropad = "0" + numZeropad;
}
return numZeropad;
}

function calendarDate ( )
{
var this_weekday_name_array = new Array("So","Mo","Di","Mi","Do","Fr","Sa")
var this_month_name_array = new Array("Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez") //predefine month names

var this_date_timestamp = new Date()
var this_weekday = this_date_timestamp.getDay()
var this_date = this_date_timestamp.getDate()
var this_month = this_date_timestamp.getMonth()

Current_Month = this_month
document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + ", " + this_month_name_array[this_month] + " " + this_date
}
</script>
<script type="text/javascript" src="translation.js"></script>

<script type="text/javascript">
var MiniIcons =
[
"tstorm3", //0 tornado
"tstorm3", //1 tropical storm
"tstorm3", //2 hurricane
"tstorm3", //3 severe thunderstorms
"tstorm3", //4 thunderstorms
"sleet", //5 mixed rain and snow
"sleet", //6 mixed rain and sleet
"sleet", //7 mixed snow and sleet
"sleet", //8 freezing drizzle
"light_rain", //9 drizzle
"sleet", //10 freezing rain
"shower3", //11 showers
"shower3", //12 showers
"snow1", //13 snow flurries
"snow2", //14 light snow showers
"snow4", //15 blowing snow
"snow4", //16 snow
"hail", //17 hail
"sleet", //18 sleet
"mist", //19 dust
"fog", //20 foggy
"fog", //21 haze
"fog", //22 smoky
"windy", //23 blustery
"windy", //24 windy
"windy", //25 cold
"overcast", //26 cloudy
"cloudy4_night", //27 mostly cloudy (night)
"cloudy4", //28 mostly cloudy (day)
"cloudy1_night", //29 partly cloudy (night)
"cloudy1", //30 partly cloudy (day)
"sunny_night", //31 clear (night)
"sunny", //32 sunny
"fair_night", //33 fair (night)
"fair", //34 fair (day)
"hail", //35 mixed rain and hail
"hot", //36 hot
"tstorm1", //37 isolated thunderstorms
"tstorm2", //38 scattered thunderstorms
"tstorm2", //39 scattered thunderstorms
"shower1", //40 scattered showers
"snow5", //41 heavy snow
"snow3", //42 scattered snow showers
"snow5", //43 heavy snow
"cloudy1", //44 partly cloudy
"tstorm3", //45 thundershowers
"snow2", //46 snow showers
"tstorm1", //47 isolated thundershowers
"dunno", //3200 not available
]

function constructError (string)
{
return {error:true, errorString:string};
}

function findChild (element, nodeName)
{
var child;
for (child = element.firstChild; child != null; child = child.nextSibling)
{
if (child.nodeName == nodeName)
return child;
}
return null;
}


function fetchWeatherData (callback, zip) {
if (isCelsius == false){
varUnit = 'f'
}else{
varUnit = 'c'
}

url="http://weather.yahooapis.com/forecastrss"
var xml_request = new XMLHttpRequest();
xml_request.onload = function(e) {xml_loaded(e, xml_request, callback);}
xml_request.overrideMimeType("text/xml");
xml_request.open("GET", url+'?w='+zip+'&u='+varUnit);
xml_request.setRequestHeader("Cache-Control", "no-cache");
xml_request.send(null);
return xml_request;
}

function xml_loaded (event, request, callback)
{
if (request.responseXML)
{
var obj = {error:false, errorString:null};
var effectiveRoot = findChild(findChild(request.responseXML, "rss"), "channel");
obj.city = findChild(effectiveRoot, "yweather:location").getAttribute("city");
obj.realFeel = findChild(effectiveRoot, "yweather:wind").getAttribute("chill");//Only accounts for windChill
conditionTag = findChild(findChild(effectiveRoot, "item"), "yweather:condition");
obj.temp = conditionTag.getAttribute("temp");
obj.icon = conditionTag.getAttribute("code");
obj.description = conditionTag.getAttribute("text");
obj.sunset = request.responseXML.getElementsByTagName("astronomy")[0].getAttribute("sunset");
obj.sunset = obj.sunset.split(' ')[0]
obj.sunsethr = obj.sunset.split(':')[0]*1+12
obj.sunsetmin = obj.sunset.split(':')[1]

obj.Today = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("day");
obj.TodayHi = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("high");
obj.TodayLo = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("low");
obj.TodayCode = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("code");

obj.Day1 = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("day");
obj.Day1Hi = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("high");
obj.Day1Lo = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("low");
obj.Day1Code = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("code");

obj.Day2 = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("day");
obj.Day2Hi = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("high");
obj.Day2Lo = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("low");
obj.Day2Code = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("code");

obj.Day3 = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("day");
obj.Day3Hi = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("high");
obj.Day3Lo = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("low");
obj.Day3Code = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("code");

obj.Day4 = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("day");
obj.Day4Hi = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("high");
obj.Day4Lo = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("low");
obj.Day4Code = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("code");

forecastTag = findChild(findChild(effectiveRoot, "item"), "yweather:forecast");
callback (obj);
}
else{
callback ({error:true, errorString:"XML request failed. no responseXML"});
}
}

function validateWeatherLocation (location, callback)
{
var obj = {error:false, errorString:null, cities: new Array};
obj.cities[0] = {zip: location}; //Not very clever, are we?
callback (obj);
}var LangTranslate = German // or English
var stylesheet = 'myopiaAlt'
var iconSet = "HTC"
var iconExt = ".png" //'.png'|.'gif' etc.
</script>

<script type="text/javascript">
var postal;

if(iconSet == null || iconSet == 'null'){
var iconSet = stylesheet;
}

var headID = document.getElementsByTagName("head")[0];
var styleNode = document.createElement('link');
styleNode.type = 'text/css';
styleNode.rel = 'stylesheet';
styleNode.href = 'Stylesheets/'+stylesheet+'.css';
headID.appendChild(styleNode);

var scriptNode = document.createElement('script');
scriptNode.type = 'text/javascript';
scriptNode.src = 'Sources/'+source+'.js';
headID.appendChild(scriptNode);

function onLoad(){
//document.getElementById("weatherIcon").src="IconSets/"+iconSet+"/"+"dunno"+iconExt;
validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)
setInterval('fetchWeatherData(dealWithWeather,postal)', 1000*60*updateInterval);
}

function setPostal(obj){
if (obj.error == false){
if(obj.cities.length > 0){
postal = escape(obj.cities[0].zip).replace(/^%u/g, "%")
fetchWeatherData(dealWithWeather,postal);
}else{
document.getElementById("city").innerText="Not Found";
}
}else{
document.getElementById("city").innerText=obj.errorString;
}
}

function dealWithWeather(obj){

if (obj.error == false){
document.getElementById("city").innerText=obj.city.substring(0,13);

if (LangTranslate == English)
{
document.getElementById("desc").innerText=obj.description; //+" ("+obj.icon+")";
}
else
{
document.getElementById("desc").innerText = LangTranslate[obj.icon*1]; }
if(useRealFeel == true){
tempValue = obj.realFeel;
}else{
tempValue = obj.temp;
}
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
if(obj.sunsethr < currentHours){
obj.TOD = "Tonight"
}
else if(obj.sunsethr < currentHours)
{
obj.TOD = "Tonight"
}
else if(currentHours < 2)
{
obj.TOD = "Tonight"
}
else
{
obj.TOD = "Today"
}

if (isCelsius == true) {
document.getElementById("temp").innerHTML=tempValue+ "° C";
} else {
document.getElementById("temp").innerHTML=tempValue+ "° F";
}
document.getElementById("weatherIcon").src="IconSets/"+iconSet+"/"+obj.icon+iconExt;

if (showBackground == false){
document.getElementById("mainbk").src="IconSets/mnidhk"+"/"+obj.icon+iconExt;
}

if (showForecast == true){
document.getElementById("Today").innerHTML=ForecastDayNames(obj.TOD);
document.getElementById("TodayIcon").src="IconSets/"+iconSet+"/"+obj.TodayCode+'_small'+iconExt;
document.getElementById("TodayHiLo").innerHTML=obj.TodayHi+ "° / <font color=#a8a8a8>"+obj.TodayLo+ "°</font>";

document.getElementById("Day1").innerHTML=ForecastDayNames(obj.Day1);
document.getElementById("Day1Icon").src="IconSets/"+iconSet+"/"+obj.Day1Code+'_small'+iconExt;
document.getElementById("Day1HiLo").innerHTML=obj.Day1Hi+ "° / <font color=#a8a8a8>"+obj.Day1Lo+ "°</font>";

document.getElementById("Day2").innerHTML=ForecastDayNames(obj.Day2);
document.getElementById("Day2Icon").src="IconSets/"+iconSet+"/"+obj.Day2Code+'_small'+iconExt;
document.getElementById("Day2HiLo").innerHTML=obj.Day2Hi+ "° / <font color=#a8a8a8>"+obj.Day2Lo+ "°</font>";

document.getElementById("Day3").innerHTML=ForecastDayNames(obj.Day3);
document.getElementById("Day3Icon").src="IconSets/"+iconSet+"/"+obj.Day3Code+'_small'+iconExt;
document.getElementById("Day3HiLo").innerHTML=obj.Day3Hi+ "° / <font color=#a8a8a8>"+obj.Day3Lo+ "°</font>";

document.getElementById("Day4").innerHTML=ForecastDayNames(obj.Day4);
document.getElementById("Day4Icon").src="IconSets/"+iconSet+"/"+obj.Day4Code+'_small'+iconExt;
document.getElementById("Day4HiLo").innerHTML=obj.Day4Hi+ "° / <font color=#a8a8a8>"+obj.Day4Lo+ "°</font>";
}

var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );

// Pad the minutes and seconds with leading zeros, if required
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";

// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;

// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;

// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;

var Conditions = ["thunderstorm",
"rain",
"rain",
"thunderstorm",
"thunderstorm",
"sleet",
"sleet",
"sleet",
"sleet",
"showers_cloud",
"sleet",
"showers_cloud",
"showers_cloud",
"snow",
"snow",
"snow",
"snow",
"hail",
"sleet",
"fog",
"fog",
"Haze",
"fog",
"wind",
"wind",
"frost",
"cloud",
"partlymoon",
"partlysunny",
"partlymoon",
"partlysunny",
"moon",
"sun",
"partlymoon",
"partlysunny",
"sleet",
"sun",
"thunderstorm",
"thunderstorm",
"thunderstorm",
"thunderstorm",
"snow",
"snow",
"snow",
"cloud",
"thunderstorm",
"snow",
"thunderstorm",
"blank"];
if (showWeatherAni == true){
document.getElementById("animationFrame").src="Animations/"+Conditions[obj.icon]+".html";
}
}
}
</script>
</head>

<body onLoad="onLoad()"style="margin: 0">
<div id="weatherFrame">
<iframe id="animationFrame" name="animation" src="Animations/blank.html" width="320" height="568" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" allowtransparency="true"></iframe>
</div>
<script type="text/javascript">
if (displayClock == true){
document.write("<img src=\"bg.png\" style=\"position: absolute; z-index:-3;top:0; left: 0px;\" height=\"186\" width=\"320\">");
document.write("<img src=\"\" id=\"ampm\" style=\"position: absolute; z-index:-3;top:110; left: 40px;\" width=\"20\">");
document.write("<table border=0 style=\"position: absolute; z-index:-1;top:22; left: 37px;\"><tr><td><img src=\"\" width=\"49\" height=\"80\" border=0 id=\"hr1\"></td><td><img src=\"\" width=\"49\" height=\"80\" border=0 id=\"hr2\"></td>\
<td width=30></td>\
<td><img src=\"\" width=\"49\" height=\"80\" border=0 id=\"min1\"></td><td><img src=\"\" width=\"49\" height=\"80\" border=0 id=\"min2\"></td>\
</tr>\
</table>")
}else{
document.write("<img src=\"day.png\" style=\"position: absolute; z-index:-3;top:130; left: 0px;\" width=\"320\">");
}

</script>
<span id="calendar" align=right>
<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
</span>
<script type="text/javascript">
if (displayClock == true){
document.write("<span id=\"clock\">");
document.write("<script language=\"JavaScript\">updateClock(); setInterval('updateClock()', 1000 )");
document.write("<\/script></span");
document.write("<span id=\"ampm\"> </span>");
}
</script>
<div id="WeatherContainer">
<div id="TextContainer">
<img id="weatherIcon" src="" height=108 width=114 style="position:absolute; top:90px;left:103px;z-index:1;">
<a id="city"></a><a id="desc"></a><a id="temp"></a>

<script type="text/javascript">
if (showForecast == true & displayClock == true){
document.write("<img src=\"forecast-bg.png\" style=\"position: absolute; z-index:-1;top:200; left: 0px;\" width=\"320\">");
document.write("<table cellpadding=0 cellspacing=0 style=\"position:absolute; top:185px; left:20px;z-index:1\" width=\"280\" align=center>\
<tr>\
<td align=center><img id=\"TodayIcon\" height=50 src=\"\"/></td>\
<td align=center><img id=\"Day1Icon\" height=50 src=\"\"/></td>\
<td align=center><img id=\"Day2Icon\" height=50 src=\"\"/></td>\
<td align=center><img id=\"Day3Icon\" height=50 src=\"\"/></td>\
<td align=center><img id=\"Day4Icon\" height=50 src=\"\"/></td>\
</tr>\
</table>\
<table cellpadding=0 cellspacing=0 style=\"position:absolute; top:225px; left:20px\" width=\"280\" align=center>\
<tr>\
<td align=center><a id=\"TodayHiLo\"></a></td>\
<td align=center><a id=\"Day1HiLo\"></a></td>\
<td align=center><a id=\"Day2HiLo\"></a></td>\
<td align=center><a id=\"Day3HiLo\"></a></td>\
<td align=center><a id=\"Day4HiLo\"></a></td>\
</tr>\
<tr>\
<td align=center><a id=\"Today\"></a></td>\
<td align=center><a id=\"Day1\"></a></td>\
<td align=center><a id=\"Day2\"></a></td>\
<td align=center><a id=\"Day3\"></a></td>\
<td align=center><a id=\"Day4\"></a></td>\
</tr>\
</table>");
}
else if (showForecast == true & displayClock == false){
document.write("<img src=\"forecast-bg.png\" style=\"position: absolute; z-index:-1;top:35; left: 0px;\" width=\"320\">");
document.write("<table cellpadding=0 cellspacing=0 style=\"position:absolute; top:15px; left:20px;z-index:1\" width=\"280\" align=center>\
<tr>\
<td align=center><img id=\"TodayIcon\" height=52 src=\"\"/></td>\
<td align=center><img id=\"Day1Icon\" height=52 src=\"\"/></td>\
<td align=center><img id=\"Day2Icon\" height=52 src=\"\"/></td>\
<td align=center><img id=\"Day3Icon\" height=52 src=\"\"/></td>\
<td align=center><img id=\"Day4Icon\" height=52 src=\"\"/></td>\
</tr>\
</table>\
<table cellpadding=0 cellspacing=0 style=\"position:absolute; top:57px; left:20px\" width=\"280\" align=center>\
<tr>\
<td align=center><a id=\"TodayHiLo\"></a></td>\
<td align=center><a id=\"Day1HiLo\"></a></td>\
<td align=center><a id=\"Day2HiLo\"></a></td>\
<td align=center><a id=\"Day3HiLo\"></a></td>\
<td align=center><a id=\"Day4HiLo\"></a></td>\
</tr>\
<tr>\
<td align=center><a id=\"Today\"></a></td>\
<td align=center><a id=\"Day1\"></a></td>\
<td align=center><a id=\"Day2\"></a></td>\
<td align=center><a id=\"Day3\"></a></td>\
<td align=center><a id=\"Day4\"></a></td>\
</tr>\
</table>");
}
</script>
<a id="time" style="position:absolute; top:80px; width:299px;z-index:-1;font-size:8px;display:none;"></a>
</div>
</div>
</body>
</html>

und translation.js:

function ForecastDayNames(day){

switch (day)
{
//Use these to translate if necessary. Change the second values, leave the first alone.
case "Mon": { return "Montag" }
case "Tue": { return "Dienstag" }
case "Wed": { return "Mittwoch" }
case "Thu": { return "Donnerstag" }
case "Fri": { return "Freitag" }
case "Sat": { return "Samstag" }
case "Sun": { return "Sonntag" }
case "Today": { return "Heute" }
case "Tonight": { return "heute Nacht" }
}

}

var German =
[
'Tornado', //0 tornado
'Tropensturm', //1 tropical storm
'Hurrikan', //2 hurricane
'schwere Gewitter', //3 severe thunderstorms
'Gewitter', //4 thunderstorms
'Schneeregen', //5 mixed rain and snow
'Graupel-Regen', //6 mixed rain and sleet
'Graupel-Schnee', //7 mixed snow and sleet
'gefrierender Regen', //8 freezing drizzle
'Nieselregen', //9 drizzle
'gefrierender Regen', //10 freezing rain
'Regen', //11 showers
'Regen', //12 showers
'Schnee&Eis', //13 snow flurries
'leichter Schneefall', //14 light snow showers
'Schneesturm', //15 blowing snow
'Schnee', //16 snow
'Hagel', //17 hail
'Schneeregen', //18 sleet
'Nebel', //19 dust
'nebelig', //20 foggy
'dunstig', //21 haze
'nebelig', //22 smoky
'Wind/Sturm', //23 blustery
'Wind/Sturm', //24 windy
'Wind/Sturm', //25 cold
'bewölkt', //26 cloudy
'bewölkt', //27 mostly cloudy (night)
'bewölkt', //28 mostly cloudy (day)
'teils bewölkt', //29 partly cloudy (night)
'teils bewölkt', //30 partly cloudy (day)
'klare Nacht', //31 clear (night)
'sonnig', //32 sunny
'klare Nacht', //33 fair (night)
'klar', //34 fair (day)
'Hagel', //35 mixed rain and hail
'sonnig', //36 hot
'teils Gewitter', //37 isolated thunderstorms
'teils Gewitter', //38 scattered thunderstorms
'teils Gewitter', //39 scattered thunderstorms
'teils Regen', //40 scattered showers
'starker Schneefall', //41 heavy snow
'teils Schneefall', //42 scattered snow showers
'starker Schneefall', //43 heavy snow
'leicht bewölkt', //44 partly cloudy
'Gewitter/Regen', //45 thundershowers
'Schneefall', //46 snow showers
'vereinzelte Gewitter', //47 isolated thundershowers
'dunno', //3200 not available
]

var English = "English" //Leave Alone

mit diesen Dateien hatte die Übersetzung in der Version 1.4 super funktioniert.
Zitieren

Hallo,

es wäre klasse, wenn mir jemand helfen könnte.

Ich habe mirm das Widget " HTC Weather Animated Forecast " heruntergeladen.

Wie ihr im Screenshot sieht, habe ich den oberen Teil in Deutsch übersetzten können.

Leider suche ich mich dumm & dämlich Lol und kann den unteren Teil von dem Widget nicht finden zum Übersetzten.

Ich versuche noch eine PNG.Datei mit hoch zu laden, mit der großen bitte, das mir einer die Datei von euch in Transparent machen kann.

Ich kanns leider nicht.

Vorab vielen Dank.


Angehängte Dateien Bild(er)
       

iPhone 6 / 64GB /  iOS 9.0.2 / S6 Edge Root 64 GB /
Zitieren

@unal2
Falls du das noch brauchst,hier bitte mit kompletter Übersetzung.

https://www.dropbox.com/s/o84h12fqqnnnh6...20iOS7.zip
Zitieren

@Uhoffi

Super , vielen Dank @Uhoffi.

Bis bald im anderen Forum Wink

iPhone 6 / 64GB /  iOS 9.0.2 / S6 Edge Root 64 GB /
Zitieren

Sorry, ich schon wieder.

Kann mir vll. jemand schreiben, wo ich bei dem HTC Animated Forecast den unteren Teil im Forecast , sprich die Stadt,Datum usw. weg bekomme ?

Danke

iPhone 6 / 64GB /  iOS 9.0.2 / S6 Edge Root 64 GB /
Zitieren

Hallo
Kann man das iPhone Lockscreen - HTC Uhr und Wetter HD an das iPhone 6 anpassen ?
http://img5.fotos-hochladen.net/uploads/...helprg.jpg
5. Juni ·
Zitieren

Nein.

Uhr und Wetter sind kein Problem. Aber die Hintergrundbilder werden zu unscharf durch die Vergrößerung.
Zitieren

Ich freu mich schon wenn du deine HTC Wetter angepasst hast, sofern du ne Anpassung planst @oldster
Zitieren

moin,

um welche Bilder ginge es denn? Um diese hier?

[Bild: 20419466dk.png]

[Bild: 20419479fy.png]

[Bild: 20419559bm.png]

[Bild: 20419483kn.png]

Sie liegen in einer Auflösung von 640 x 1136 vor und sind jedenfalls auf dem iPhone 6 nicht unscharf. Ich verwende sie mit dem Theme Weather Elements HD. Für das HTC-Theme müssten die Grafiken ggfls noch umbenannt werden. In dem Set sind 35 Grafiken, ich habe aber auch noch ein anderes Set mit 58 Grafiken gefunden - das stammt möglicherweise aus dem HTC-Theme, da bin ich aber nicht so ganz sicher.

CU
Zed

 iPhone 12 Pro Max @iOS 16.5.1  iMac 27" 3.2 GHz  Macbook Pro 13.3" 
Zitieren

Hallo
Danke für die Info ich hätte das komplette Thema da
Mit allen Grafiken

M.F.G
Zitieren

hi,

@hell7 hat ein Script entwickelt, mit dem die html-Dateien gezoomt werden. Für Weather Elements funktioniert das sowohl für das iPhone 6 als auch das 6+.

Wenn Du es testen willst, musst Du am Ende der Lockbackground.html das Script von hell7 einfügen und zwar zwischen
</div> und <body>

Zitat:<script>
var width = window.innerWidth;
if(width == 375){
viewport = document.querySelector("meta[name=viewport]");
viewport.setAttribute('content', 'width=device-width, initial-scale=1.18, maximum-scale=1.18, user-scalable=0');
}
else if(width == 414 ){
viewport = document.querySelector("meta[name=viewport]");
viewport.setAttribute('content', 'width=device-width, initial-scale=1.3, maximum-scale=1.3, user-scalable=0');
}
else{}
</script>

Wo kann ich das Theme laden? Cydia?

CU
Zed

 iPhone 12 Pro Max @iOS 16.5.1  iMac 27" 3.2 GHz  Macbook Pro 13.3" 
Zitieren

Hallo
Ich kann es dir schicken gibt es nicht bei cydia
Zitieren

Hallo

Hier mal der Link http://www.file-upload.net/download-1001...e.rar.html
Zitieren

Hier die html mit den Änderungen, einfach austauschen, überschreiben
Download: https://www.dropbox.com/s/kr02ipag3tdtjz...l.zip?dl=0

@ zed
Habe das nicht entwickelt, kann ich gar nicht, lol
nur getestet.
Credits to Simon
Zitieren

Perfekt danke
http://www.file-upload.net/download-1001...e.jpg.html

Ist mir gerade aufgefallen bei den Temperaturen stimmt was nicht
Zitieren

Habe es noch einmal neu gemacht mit anderem Programm
wenn das auch nicht funzt, müsstest du alles von Hand ändern.
Teste mal
Download: https://www.dropbox.com/s/kr02ipag3tdtjz...l.zip?dl=0

MFG
Zitieren

Gut dann stimmen die Temperaturen nur das Bild ist wieder kleiner schade aber danke für den Versuch
Zitieren

@hell7: ok - Du bist trotzdem mein Held Prost

CU
Zed

 iPhone 12 Pro Max @iOS 16.5.1  iMac 27" 3.2 GHz  Macbook Pro 13.3" 
Zitieren

(18.12.2014, 14:40)hell 7 schrieb:  Hier die html mit den Änderungen, einfach austauschen, überschreiben
Download: https://www.dropbox.com/s/kr02ipag3tdtjz...l.zip?dl=0

@ zed
Habe das nicht entwickelt, kann ich gar nicht, lol
nur getestet.
Credits to Simon

Kannst du das mal für das 6+ machen aber nur wenn es keine Umstände macht
Zitieren


Möglicherweise verwandte Themen…
Thema / Verfasser Antworten Ansichten Letzter Beitrag



Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste