MythLogBot@irc.freenode.net :: #mythtv-theming

Daily chat history

Current users (14):

anykey_, brfransen, jpabq, jpabq-, jpabq_, justinh, knightr, mag0o, MythLogBot, oobe, skd5aner, sphery, toeb, wagnerrp
Sunday, November 20th, 2011, 10:46 UTC
[10:46:09] stuartm: jpabq: yes, but to indicate that it should be treated as such you need to use %n for the number instead of %1
[10:46:28] stuartm: so "<template>There is/are %n recording(s) in this display group</template>"
[10:49:03] stuartm: fwiw QT limits those strings to one %n value, so you can't do "There is/are %n recording(s) and %n2 group(s)"
[10:50:50] stuartm: there is a description of the usage in the wiki – http://www.mythtv.org/wiki/MythUI_Theme_Devel . . . tarea_widget
[11:35:05] natanojl (natanojl!~jonatan@c83-252-237-63.bredband.comhem.se) has quit (Ping timeout: 252 seconds)
[11:47:34] natanojl (natanojl!~jonatan@c83-252-237-63.bredband.comhem.se) has joined #mythtv-theming
[12:45:04] simonckenyon (simonckenyon!~simoncken@195.7.61.12) has quit (Ping timeout: 260 seconds)
[13:36:19] justinh (justinh!~justin@cpc10-salf5-2-0-cust50.10-2.cable.virginmedia.com) has quit (*.net *.split)
[13:36:20] k-man (k-man!~k-man@unaffiliated/k-man) has quit (*.net *.split)
[13:36:23] sphery (sphery!~mdean@mythtv/developer/sphery) has quit (*.net *.split)
[13:36:26] justinh (justinh!~justin@cpc10-salf5-2-0-cust50.10-2.cable.virginmedia.com) has joined #mythtv-theming
[13:36:39] sphery (sphery!~mdean@mythtv/developer/sphery) has joined #mythtv-theming
[13:36:39] Mode for #mythtv-theming by ChanServ!ChanServ@services. : +v sphery
[13:38:53] k-man (k-man!~k-man@unaffiliated/k-man) has joined #mythtv-theming
[15:43:18] jpabq: stuartm, thanks. Unfortunately I must still be doing something wrong. with <textarea name="rec_count"><template>There is/are %n recording(s) in this display group</template> I still get the "is/are" and "recording(s)" printed out.
[15:47:47] iamlindoro: jpabq: Have you performed a translation/compiled the translation?
[15:48:23] iamlindoro: I believe that's required to make the plural values work, even if your language is American english
[15:49:11] jpabq: iamlindoro, Ah.... nope. How do I do that?
[15:49:20] iamlindoro: jpabq: I have no idea :)
[15:49:58] jpabq: But you are suppose to be the king of such knowledge!
[15:50:00] knightr: jpabq, iamlindoro, he needs to run themestrings/themestringtool on his pc, run lupdate translate.pro on the appropriate translation, edit the appropriate .ts file (preferably with Qt Linguist) and run lrelease on it...
[15:50:02] iamlindoro: I think it's just a matter of generating new theme strings, loading the translation files in the Qt translation tool, performing the translations, marking the translations as finished, and combiling new .qms
[15:50:14] iamlindoro: Or more or less what knightr just said ;)
[15:54:36] stuartm: jpabq: linguist is easiest route
[15:54:41] jpabq: themestrings needs compiled, but there is no Makefile.
[15:55:36] knightr: jpabq, you need to use the pro file to generate IIRC...
[15:55:42] jpabq: Since I am using the exact same verbage that playbackbox is using, I was hoping I would not have to do this.
[15:56:22] knightr: jpabq, is this for something that's in a theme that's currently available, I could run it on the our repo if you wish...
[15:56:40] knightr: probably not in the same (translation) context...
[15:57:05] stuartm: jpabq: unfortunately the way translation contexts work ...
[15:57:07] knightr: (and maybe not even in the same translation file if it's not in the same plugin/module...)
[15:57:11] jpabq: knightr, Thanks, but this is a new theme. One I had no intention of writing, but as I needed to test MythUI stuff, it evolved.
[15:57:51] stuartm: it probably wouldn't cause any problems to put everything in the same context – it would reduce the total number of strings needing translation
[15:58:12] knightr: jpabq, ok...
[15:58:31] knightr: jpabq, is the other string in a theme or in regular code?
[15:58:49] stuartm: linguist, if used correctly, should handle duplicate strings just fine but it makes the job of translating seem much greater
[15:58:50] jpabq: regular code.
[15:59:49] jpabq: Basically, I want the "There is/are %1 recording(s) in this display group" available to the theme, but NOT in the description.
[16:00:00] knightr: argh, that's why it doesn't find it then... All theme stuff is in the ThemeUI context, all the rest is either in a context with the same name as the class name or in QObject...
[16:00:13] stuartm: knightr: we can move it to the translation, it will cause a small amount of disruption but worth it in the long term
[16:00:55] jpabq: So, I figured I could use template with rec_count. I might be better off just adding "There is/are %1 recording(s) in this display group" to it's own map entry in playbackgox.
[16:01:09] knightr: stuartm, not sure what you meant there...?
[16:01:30] stuartm: jpabq: nah, it's better the other way around
[16:01:31] knightr: jpabq, if it's only for test I might be able to help you...
[16:01:36] knightr: s/test/tests
[16:02:12] stuartm: knightr: if we remove the string from the code and just leave themers to construct it in the themes
[16:02:24] stuartm: which it seems is what jpabq is trying to achieve anyway
[16:02:41] knightr: stuartm, yep, that would work...
[16:03:20] stuartm: when I said earlier "move it to the translation" I meant "move to the theme" – my fingers betrayed me
[16:03:58] knightr: stuartm, :-)
[16:04:47] jpabq: So, is this something you guys are actually going to work on? Or should I figure out how to generate a Makefile from a .pro file?
[16:07:43] knightr: jpabq, qmake... If the fix needs anything more than translation stuff it would be simpler if somebody else did that part (since anything I do not translation related needs to be reviewed by other devs) and even more so for theme related stuff since I have no idea how to do that part... :-)
[16:08:09] knightr: jpabq, I could help you though if you only need to test that...
[16:08:41] knightr: (by tricking the translation system into adding that string and doing the steps I described above for you...)
[16:08:46] jpabq: knightr, okay. I have been trying to figure out what args qmake needs,
[16:09:29] jpabq: knightr, The exact thing I have in the theme is <template>There is/are %n recording(s) in this display group</template>
[16:10:07] knightr: ok, where is it supposed to be, core or one of the plugins?
[16:10:18] jpabq: This for core
[16:10:30] jpabq: This is for core.
[16:11:01] stuartm: qmake translate.pro
[16:11:03] knightr: ok, let me prepare this and I'll ping you as soon as this is done..
[16:13:30] stuartm: jpabq: I will move the string, but since it means amending several themes it will take some boring methodical work than I'm not really interested in doing tonight :)
[16:13:45] jpabq: stuartm, I was trying to run "qmake themestrings.pro" but that was not working because it didn't know where to find stuff. It looks like there is already a makefile in mythtv/i18n
[16:14:02] knightr: jpabq, it's not used for that...
[16:14:15] jpabq: stuartm, I completely understand.
[16:14:30] knightr: (IIRC...)
[16:15:23] jpabq: stuartm, Sounds like knightr is going to get me squared away for now, anyway.
[16:16:27] knightr: jpabq, stuartm, yep, no problem... I'll only do MythFrontend (core) for now and I'll commit it since the string will end up there for real anyway...
[16:18:25] stuartm: I ultimately wanted to move most strings like this one into themes so that their use and wording was more flexible
[16:20:25] jpabq: stuartm, how, exactly, are you going to amend the themes? Right now, the "description" is overloaded to have either the description or the rec_count info. Are you just going to have both string appear in the same area, with the assumption that if you have one, you don't have the other?
[16:24:07] stuartm: jpabq: that or I'll introduce a statetype which flips between states depending on which list is selected – the latter is much more powerful but requires a little more work
[16:24:44] stuartm: I'm leaning towards the statetype, but it depends on the time I have available
[16:25:18] ** jpabq nods **
[16:25:55] stuartm: with the statetype you could have a complete change of layout and display a greater range of information for groups
[16:27:55] jpabq: Sounds good to me.
[16:32:53] knightr: jpabq, sorry for the probably dumb question but which English translation do you use (US, UK, CA)?
[16:33:34] jpabq: US
[16:33:42] jpabq: knightr, Thanks for doing this.
[16:34:01] knightr: jpabq, np...
[17:33:00] knightr: jpabq-, it's committed... let me know if work/doesn't work. I'm going to eat something now, I'll be back in 15 minutes...
[17:36:14] jpabq: knightr, perfect. Thanks!
[17:55:07] toeb (toeb!~tob@HSI-KBW-078-042-104-026.hsi3.kabel-badenwuerttemberg.de) has joined #mythtv-theming
[17:55:20] toeb: is it possible to set the guidegrid scrollbehavior to center?
[17:55:32] toeb: <scrollstyle>center</scrollstyle> does not work...
[17:59:16] knightr: jpabq, np... Sorry for the delay, I did the whole file and quite a few strings have been added since 0.24...
[18:14:36] jpabq: toeb, the guidegrid does not honor that control. If you wanted to add that functionality, I am sure it would be considered for inclusion in 0.25
[19:18:58] stuartm: toeb: the current guide widget was only ever meant to be temporary until one could be written which better matched the other widgets in usage and features, so no it's not currently possible but we hope it will be sometime in the future
[21:57:04] natanojl (natanojl!~jonatan@c83-252-237-63.bredband.comhem.se) has quit (Ping timeout: 240 seconds)
[23:15:11] k-man (k-man!~k-man@unaffiliated/k-man) has left #mythtv-theming ()

IRC Logs collected by BeirdoBot.
Please use the above link to report any bugs.