Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 4 of 4 FirstFirst ... 234
Results 46 to 58 of 58

Thread: My YouViX Blue modification

  1. #46
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,304
    Thanks
    1,987
    Thanked 4,766 Times in 3,155 Posts
    Quote Originally Posted by Orlandox View Post
    I got it now ! It was my mistake, because I had this <widget name="icon" position="0,0" size="0,0"/> #To remove debug warning. Aaaargh !
    Thank you for your help again !
    Yes but the warning is due to no images being listed in the "pixmaps" attribute.

  2. #47

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    Hello,

    next question about TMDb skin: size of star.png has been increased from 100x100 to 150x150 and it doesn't fit anymore to the screen. How I can scale it smaller to fit size 100x100 ?

    EDIT : I fixed it by using scale="1"

    <ePixmap position="e-400,165" size="100,100" zPosition="0" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/tmdb/pic/star.png" transparent="1" alphatest="blend" scale="1"/>
    Last edited by Orlandox; 20-08-23 at 16:56.

  3. The Following User Says Thank You to Orlandox For This Useful Post:

    Huevos (20-08-23)

  4. #48

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    Hello,

    how to this can be shown on 'SoftwareUpdateChoices' ? Now I can only see "Perform a settings backup," and on a second line just the top of "making a backup before updating"

    https://github.com/OpenViX/enigma2/b...Update.py#L284

    choices.append((_("Perform a settings backup,") + '\n\t' + _("making a backup before updating") + '\n\t' + _("is strongly advised."), "backup"))

  5. #49
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,304
    Thanks
    1,987
    Thanked 4,766 Times in 3,155 Posts
    Get a screengrab of the page.

    But anyway if there is only room for one line it is not going to show.

    And anyway it is crap breaking up a sentence like that. It should be one translatable unit with %s or line feeds inside the gettext.

  6. #50

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    Quote Originally Posted by Huevos View Post
    Get a screengrab of the page.

    But anyway if there is only room for one line it is not going to show.

    And anyway it is crap breaking up a sentence like that. It should be one translatable unit with %s or line feeds inside the gettext.
    From which page you want to have a screengrab ?
    I can see all those 3 lines when changing font size -> <alias name="ChoiceList" font="Regular" size="10", but then the text is so small that I barely can read it.

  7. #51
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,304
    Thanks
    1,987
    Thanked 4,766 Times in 3,155 Posts
    It does not make sense having three lines of text in a list item. I've moved the the warning message to the end of self["text"]. You well need to tweak the translations.

    https://github.com/OpenViX/enigma2/c...1033041804f454

  8. The Following User Says Thank You to Huevos For This Useful Post:

    Orlandox (07-09-23)

  9. #52

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    Thank you. Done that and it looks good now !

  10. #53

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    I was happy too soon. When you select '3', after that we have odd situation again: starting from line 350.

    https://github.com/OpenViX/enigma2/b...Update.py#L350

  11. #54

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    Can it be fixed like this ?

    Code:
    		if answer[1] == "menu":
    			if config.softwareupdate.updateisunstable.value == 1:
    				message = _("The current update may be unstable.") + "\n" + _("Are you sure you want to update your %s %s?") % (getMachineBrand(), getMachineName()) + "\n(%s " % self.total_packages + _("Packages") + ")"
    			elif config.softwareupdate.updateisunstable.value == 0:
    				message = _("Do you want to update your %s %s?") % (getMachineBrand(), getMachineName()) + "\n(%s " % self.total_packages + _("Packages") + ")"
    			choices = [(_("View the changes"), "changes"),
    				(_("Upgrade and reboot system"), "cold")]
    			if not self.SettingsBackupDone and not config.softwareupdate.autosettingsbackup.value and config.backupmanager.backuplocation.value:
    				choices.append((_("Perform a settings backup"), "backup"))
    			if isPluginInstalled("ViX") and not config.softwareupdate.autosettingsbackup.value and config.backupmanager.backuplocation.value:
    						message += "\n" + _("Making a settings backup before updating is highly recommended.")

  12. #55
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,304
    Thanks
    1,987
    Thanked 4,766 Times in 3,155 Posts
    What exactly is the problem?

  13. #56

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    Same texts, but little differencies:

    for example:

    https://github.com/OpenViX/enigma2/b...wareUpdate.py#L354 -> message = _("Do you want to update your %s %s ?") % (getMachineBrand(), getMachineName()) + "\n(%s " % self.total_packages + _("Packages") + ")"

    https://github.com/OpenViX/enigma2/b...wareUpdate.py#L269 -> message = _("Do you want to update your %s %s?") % (getMachineBrand(), getMachineName()) + packagesMsg

    Then this is too long to fit : https://github.com/OpenViX/enigma2/b...wareUpdate.py#L358 -> choices.append((_("Perform a settings backup, making a backup before updating is strongly advised."), "backup"))

    Now it needs double translations, because small differencies (i.e. space missing).

  14. #57
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,304
    Thanks
    1,987
    Thanked 4,766 Times in 3,155 Posts
    Try this version.

    The whole thing is horrible though from a translation point of view. It is all split into small units so the translator has no control over the order.
    Attached Files Attached Files

  15. #58

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Posts
    472
    Thanks
    166
    Thanked 50 Times in 42 Posts
    Now everything looks good, thank you.

Page 4 of 4 FirstFirst ... 234

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.