Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.33 KB | None | 0 0
  1. === modified file 'cmake/Translations.cmake'
  2. --- cmake/Translations.cmake    2012-09-22 19:00:59 +0000
  3. +++ cmake/Translations.cmake    2014-06-22 18:38:55 +0000
  4. @@ -35,7 +35,7 @@
  5.      endforeach()
  6.  
  7.      add_custom_command (TARGET pot COMMAND
  8. -        ${XGETTEXT_EXECUTABLE} -d ${NLS_PACKAGE} -o ${CMAKE_CURRENT_SOURCE_DIR}/${NLS_PACKAGE}.pot
  9. +        ${XGETTEXT_EXECUTABLE} -c -d ${NLS_PACKAGE} -o ${CMAKE_CURRENT_SOURCE_DIR}/${NLS_PACKAGE}.pot
  10.          ${VALA_SOURCE} ${C_SOURCE} --keyword="_" --from-code=UTF-8
  11.          )
  12.  endmacro()
  13.  
  14. === modified file 'src/Plug.vala'
  15. --- src/Plug.vala   2014-06-22 10:29:49 +0000
  16. +++ src/Plug.vala   2014-06-22 18:36:59 +0000
  17. @@ -272,6 +272,8 @@
  18.          Granite.Widgets.Utils.apply_text_style_to_label (Granite.TextStyle.TITLE, title);
  19.          title.set_alignment (0, 0);
  20.  
  21. +        // make sure to keep all three %s in the string, otherwise switchboard will crash!
  22. +        // the first %s will be replaced by the version, the second by the codename and the third by the arch
  23.          var version = new Gtk.Label (_("Version: %s \"%s\" ( %s )").printf(version, codename, arch));
  24.          version.set_alignment (0, 0);
  25.          version.set_selectable (true);
  26. @@ -452,4 +454,4 @@
  27.      debug ("Activating About plug");
  28.      var plug = new About.Plug ();
  29.      return plug;
  30. -}
  31. \ No newline at end of file
  32. +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement