/srv/irclogs.ubuntu.com/2020/04/22/#ubuntu-installer.txt

seb128Laney, k, I give up on that RST translation issue, it's over my debconf/ubiquity understanding09:15
seb128I edited https://git.launchpad.net/ubiquity/tree/ubiquity/plugins/ubi-prepare.py#n147 and do09:15
seb128syslog;syslog(self.controller.get_string('ubiquity/text/efi_secureboot'))09:16
seb128syslog.syslog(self.controller.get_string('ubiquity/text/efi_secureboot'))09:16
seb128-> translated09:16
seb128syslog.syslog(self.controller.get_string('ubiquity/text/rst_header'))09:16
seb128-> not translated09:16
seb128they are defined the same way in the template from what I can tell09:16
seb128and09:17
seb128$ gettext -d ubiquity-debconf 'Turn off RST'09:17
seb128correctly return the french string09:17
seb128I can't see a difference between that one and others09:17
Laney:/09:17
Laneywe can look more together after this week if you want09:18
seb128sure09:18
LaneyI thought I just copied everything else09:18
seb128I will try thinking about it but I'm just out of ideas09:18
seb128I don't get why the get_string works on another string and not this one09:18
seb128at least it doesn't seem the plumbing around or the page09:18
seb128if I use 'ubiquity/text/efi_secureboot' it displays also translated on the page09:18
seb128so it's something about the string09:19
seb128or debconf, I don't understand how debconf translations work...09:19
seb128ok09:20
seb128found a problem now09:20
seb128sometime summarizing help :09:20
seb128:p09:20
seb128 /var/cache/debconf/templates.dat doesn't include the translations for those new strings09:21
seb128Laney, k, got it09:27
seb128./debian/imported-po translations need to be updated09:28
seb128the build does09:28
seb128'dh_installdebconf09:28
seb128echo >> debian/ubiquity/DEBIAN/templates09:28
seb128po2debconf --podir=debian/imported-po \09:28
seb128debian/ubiquity.templates-imported \09:28
seb128>> debian/ubiquity/DEBIAN/templates09:28
seb128echo >> debian/ubiquity/DEBIAN/templates'09:28
seb128 09:28
seb128I don't understand the difference between debian/real-po and debian/imported-po09:29
seb128I updated both in the previous export09:29
seb128Laney, looks like you only updated real-po when you added the strings09:30
Laneyok09:30
seb128sorry for the channel spamming09:30
seb128I will do a MP with a new translations import09:30
Laneyis there any chance you can add a test to make sure this doesn't happen?09:30
Laneythx for finding it09:31
seb128I would need to understand why we have those directories split first09:31
seb128but yeah, I can take an action item to look at that09:31
Laneythere are already some tests for untranslatable strings iirc09:31
Laneybut sounds like they are missing this09:31
Laneywhatever this means, shrug09:31
seb128the string is translatable correctly09:32
seb128we just didn't inject back translation work from launchpad09:32
Laneybut you said gettext was showing it for you yet the UI wasn't09:33
seb128yes, because the title is not fetch using gettext09:33
seb128it's read from debconf09:33
Laneywhere did that translation come from?09:34
seb128gettext? from the .mo09:34
seb128but debconf is looking to /var/cache/debconf/templates.dat09:34
Laneysomeone did a bad import or what are you saying?09:34
seb128which has inline translations from the snippet at the package built I copied09:34
seb128build does09:34
seb128 po2debconf --podir=debian/imported-po \09:34
seb128  debian/ubiquity.templates-imported \09:34
seb128  >> debian/ubiquity/DEBIAN/templates09:34
seb128but import-po didn't get a copy of the new .po exported09:35
seb128imported-po09:35
seb128so the strings are missing from the templates file09:35
seb128real-po has been updated though09:35
seb128so gettext is fine09:35
seb128mismatch of dbs09:35
seb128I don't know why we have 2 sets of .po though, that's confusing :/09:35
Laneyweird09:37
Laneywill it automatically get all the translations from launchpad when that is fixed?09:38
seb128well the fix is to do a launchpad export and copy the updated po to the vcs09:39
seb128there is no 'automatic', ubiquity doesn't use langpacks for those translations09:39
seb128need to be manually updated09:39
LaneyI know, sorry trying again09:42
LaneyI mean: will they have to be re-translated or will the existing translations work, once this is fixed?09:42
seb128oh, existing translations will work09:42
seb128sorry :)09:42
seb128k, I think I got things wrong with imported-po09:47
seb128but an export/rebuild should fix it, I'm testing that now09:48
seb128the imported-po are other strings from e.g GTK09:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!