XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 2nd, 2025, 11:04 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: March 1st, 2018, 5:53 pm 
Offline

Joined: February 27th, 2018, 2:45 pm
Posts: 2
Quote:
Hello to everyone,

Maybe you can help me with this matter. I'm on xwidget pro v1.3.6. I often encounter the problem that in existing widgets I cannot create the weekday to be shown as "MON", not only "Mo." or fully "Montag" (German language) as in datetimecore. Just "MON" as in many other widgets.

Accweathercore does exist and is chosen. I understood that it also has to do something with "interceptStart" (sorry, I'm not a professional), so this is set to "1", too. Still not working. It always shows fully "Montag", resp. "Mo." - when it's like ${weekshort1}. Same with English language, not only with German days.

When I do the same in widgets which already DO have this 3-letter English abbreviation, it's working perfectly well to change them into a 3-letter German word and also to add more such days by cloning one, but NOT via creating new entries.

So does it have to be set during the creation of the widget already and cannot be changed afterwards or what did I do wrong? :?

Thanks a lot for your answer!

Lydia

Hello Lydia.
I create most of the widgets so I can explain you how this part work. I will show you screenshots from the pc XDesigner but works the same on Android. (check the link below)

1.How to change the date language from English to your phone's language:
All the widgets are made using the english language as default.
Edit the widget and change the corrisponding text's code-tag under Attributes->Bind Core->Core label.
1. Day
${WeekEn} -> ${Week}
${WeekEnShort} -> ${WeekShort}
2. Month
${MonthEn} -> ${MonthTxt}
${MonthEnShort} -> ${MonthTxtShort}

Exit and Save

2. About the text length depends on the design. There are widgets that I have used or all the word so for example "Monday" - code ${MonthEn}, or the three letters - code ${WeekEnShort}, or a custom length using the Interception option (or InterceptStart/End on phone)
Here are some screenshots to understand how it works: (english or german doesn't matter)

https://imgur.com/a/Lkhv5

The Interception option works like this: (default is off with values 0 - 0)
- The Start position is the number of the letter that the word will start with. So if you want to use this option in general and start/show from the first letter, put it to "1".
- The Length (or interceptEnd on phone) is the is the number of the letter that the word will end with. So if you want to have "Mo" you need to put "2" as I did on my example here. If you want "Mon" put "3", "Mond" put 4 etc.

I hope to be clear :)

PM: This is the pc section. If you want to ask something for the Android only pls use this section
viewforum.php?f=19
Thank you


Hi Jimking,

Firstly thank you very much for your quick reply! Sorry for posting this in the wrong section. Hope to be right here now.

Unfortunately, for some reason the little letters in the screenshot are hardly recognisable, maybe something's wrong with my phone settings, so let's see if I got it right from your description.

Standard is:
${weekEn} = Thursday (English)
${week} = Donnerstag (German)

${weekEnShort} = Thu (English)
${weekShort} = Do. (German)

So far, so clear.

If now I would like to have a 3-letter abbreviation for German, I have to use a custom length, right? (because ${weekShort} = "Do." and not "Don", as it is in English).

So I use Interception option.
And now that's what unfortunately I cannot make out clearly in the screenshot.

For "Don":
First letter "D" = interceptStart = 1, right?
Lenght of the word is supposed to be 3, so this is
InterceptEnd = 3 ?

In case I should have gotten it right so far, then why it's not working with me? see screenshots

I am so sad.... :cry:


Attachments:
02.png
02.png [ 35.62 KiB | Viewed 8671 times ]
01.png
01.png [ 189.54 KiB | Viewed 8671 times ]
Top
 Profile  
 
PostPosted: March 2nd, 2018, 12:12 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Let me check Lmuska. Normally the language is something irrelevant with the interceptStart/end option.
I will check and reply as soon as possible, to see if there is a bug there to report to the Dev..
Thank you

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: March 2nd, 2018, 1:30 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I checked and yes seems that you're right and there is a bug there that the "interceptStart/end" option doesn't work. We're sorry about that. I will pass your report to the Dev today to fix it for the next version.

Now if don't want to wait there is an alternative solution for you. You can use the pc XDesigner to edit the widget as you want. I always use this method because in my opinion it's much easier and faster.
XWidget supports real-time editing so connecting your phone to the pc (with usb) you're able to create or edit widgets and see the changes directly on your phone screen.

For more info read here
viewtopic.php?f=23&t=3776

If you need help let me know :)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group