You are not logged in.

#1 2015-11-11 10:49:07

rebooteux
New Member
Registered: 2015-11-11
Posts: 2

menu Openbox français / french

Salut
i share here my french translation of the Openbox "menu.xml" file, located in /home/<your user>/.config/openbox/menu.xml
Once modified this file, then let's restart the Openbox menu.
i added a root terminal in System submenu.
sorry, i did not verify yet the harmonization of my translations with the Crunchbang menus.

Thank you all for making exist Bunsenlabs.
Le rebooteux


/home/<nom_d'utilisateur>/.config/openbox/menu.xml
-------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/                 file:///usr/share/openbox/menu.xsd">
	<menu id="root-menu" label="Openbox 3">
		<item label="Lancez un Programme">
			<action name="Execute">
				<command>gmrun</command>
			</action>
		</item>
		<separator/>
		<item label="Terminal">
			<action name="Execute">
				<command>
                    x-terminal-emulator
                </command>
			</action>
		</item>
		<item label="Navigateur Web">
			<action name="Execute">
				<command>x-www-browser</command>
			</action>
		</item>
		<item label="Gestionnaire de Fichiers">
			<action name="Execute">
				<command>bl-file-manager</command>
			</action>
		</item>
		<item label="Éditeur de Texte">
			<action name="Execute">
				<command>bl-text-editor</command>
			</action>
		</item>
		<item label="Lecteur Multimédia">
			<action name="Execute">
				<command>bl-media-player</command>
			</action>
		</item>
		<separator/>
		<menu id="accessories" label="Accessoires">
			<item label="Recherche de Fichiers Catfish">
				<action name="Execute">
					<command>catfish</command>
				</action>
			</item>
			<item label="Gestionnaire d'archives">
				<action name="Execute">
					<command>file-roller</command>
				</action>
			</item>
			<item label="Gestionnaire de tâches (htop)">
				<action name="Execute">
					<command>x-terminal-emulator -T 'htop task manager' -e htop</command>
				</action>
			</item>
		</menu>
		<menu execute="bl-graphics-pipemenu" id="bl-graphics-pipemenu" label="Graphisme"/>
		<menu execute="bl-multimedia-pipemenu" id="bl-multimedia-pipemenu" label="Multimedia"/>
		<menu id="network" label="Réseau">
			<menu execute="bl-x-www-browser-pipemenu" id="wwwbrowsers" label="Navigateurs web"/>
			<item label="Filezilla  Client FTP">
				<action name="Execute">
					<command>filezilla</command>
				</action>
			</item>
			<item label="Transmission Client BitTorrent">
				<action name="Execute">
					<command>transmission-gtk</command>
				</action>
			</item>
			<item label="HexChat Client IRC">
				<action name="Execute">
					<command>hexchat</command>
				</action>
			</item>
			<item label="Fichiers système distant">
				<action name="Execute">
					<command>gigolo</command>
				</action>
			</item>
			<menu execute="bl-remote-desktop-pipemenu" id="remotedesktop" label="Bureau Distant"/>
			<menu execute="bl-sshconfig-pipemenu" id="sshconfig" label="SSH"/>
			<separator label="Services"/>
			<menu execute="bl-dropbox-pipemenu" id="dropbox" label="Dropbox"/>
		</menu>
		<menu id="office" label="Bureautique">
			<menu execute="bl-libreoffice-pipemenu" id="libreoffice" label="LibreOffice"/>
			<item label="Google Docs">
				<action name="Execute">
					<command>
                        x-www-browser [url]https://drive.google.com/[/url]
                    </command>
				</action>
			</item>
			<item label="Tableur Gnumeric">
				<action name="Execute">
					<command>gnumeric</command>
				</action>
			</item>
			<item label="Calculatrice">
				<action name="Execute">
					<command>galculator</command>
				</action>
			</item>
			<item label="Evince Lecteur PDF">
				<action name="Execute">
					<command>evince</command>
				</action>
			</item>
		</menu>
		<separator/>
		<menu execute="bl-places-pipemenu" id="pipe-placesmenu" label="Emplacements"/>
		<menu execute="bl-recent-files-pipemenu -rl15" id="pipe-recentfilesmenu" label="Fichiers Récents"/>
		<separator/>
		<menu id="preferences" label="Préférences">
			<menu id="obConfig" label="Configurez Openbox">
				<item label="Éditez menu.xml">
					<action name="Execute">
						<command>bl-text-editor ~/.config/openbox/menu.xml</command>
					</action>
				</item>
				<item label="Éditez rc.xml">
					<action name="Execute">
						<command>bl-text-editor ~/.config/openbox/rc.xml</command>
					</action>
				</item>
				<item label="Éditez autostart">
					<action name="Execute">
						<command>bl-text-editor ~/.config/openbox/autostart</command>
					</action>
				</item>
				<separator/>
				<item label="GUI Menu Éditeur">
					<action name="Execute">
						<command>obmenu</command>
					</action>
				</item>
				<item label="GUI Outil de Configuration">
					<action name="Execute">
						<command>obconf</command>
					</action>
				</item>
				<item label="Comment éditer le Menu">
					<action name="Execute">
						<execute>zenity --text-info --title=&quot;How to Edit the Menu&quot; --filename=&quot;/usr/share/bunsen/bunsen-docs/helpfile-menu.txt&quot; --width=900 --height=700</execute>
					</action>
				</item>
				<separator/>
				<item label="Reconfigurer">
					<action name="Reconfigure"/>
				</item>
				<item label="Redémarrer">
					<action name="Restart"/>
				</item>
			</menu>
			<menu execute="bl-compositor" id="CompositingPipeMenu" label="Compositeur d'Effets Visuels"/>
			<menu execute="bl-conky-pipemenu" id="pipe-conkymenu" label="Menu Conky"/>
			<menu execute="bl-tint2-pipemenu" id="pipe-tint2menu" label="Barre Tint2"/>
			<item label="Apparence">
				<action name="Execute">
					<command>lxappearance</command>
				</action>
			</item>
			<item label="Fond d'Écran">
				<action name="Execute">
					<command>nitrogen</command>
				</action>
			</item>
			<item label="Notifications">
				<action name="Execute">
					<command>xfce4-notifyd-config</command>
				</action>
			</item>
			<item label="Gestion d'énergie">
				<action name="Execute">
					<command>xfce4-power-manager-settings</command>
				</action>
			</item>
			<menu id="dmenuconfig" label="dmenu">
				<item label="Éditez votre Script de démarrage">
					<action name="Execute">
						<command>bl-text-editor ~/.config/dmenu/dmenu-bind.sh</command>
					</action>
				</item>
				<separator label="Help?"/>
				<item label="Page de manuel (man)">
					<action name="Execute">
						<command>x-terminal-emulator -T 'man dmenu' -e man dmenu</command>
					</action>
				</item>
			</menu>
			<menu id="gmrunconfig" label="gmrun">
				<item label="Éditez son fichier de configuration">
					<action name="Execute">
						<command>bl-text-editor ~/.gmrunrc</command>
					</action>
				</item>
				<separator label="Help?"/>
				<item label="Page de manuel (man)">
					<action name="Execute">
						<command>x-terminal-emulator -T 'man gmrun' -e man gmrun</command>
					</action>
				</item>
			</menu>
			<menu id="DisplaySettings" label="Affichage">
				<item label="ARandR Paramétrage Écran">
					<action name="Execute">
						<command>arandr</command>
					</action>
				</item>
				<separator label="Help?"/>
				<item label="Page de manuel (man) xrandr">
					<action name="Execute">
						<command>x-terminal-emulator -T 'man xrandr' -e man xrandr</command>
					</action>
				</item>
			</menu>
		</menu>
		<menu id="system" label="Système">
			<menu execute="bl-printing-pipemenu" id="PrintingPipeMenu" label="Imprimantes"/>
			<item label="Gestionnaire de paquets Synaptic">
				<action name="Execute">
					<command>gksudo synaptic</command>
				</action>
			</item>
			<item label="Gestionnaire de fichiers en tant que root">
				<action name="Execute">
					<command>gksudo bl-file-manager</command>
				</action>
			</item>
			<item label="Éditeur de texte en tant que root">
				<action name="Execute">
					<command>gksudo bl-text-editor</command>
				</action>
			</item>
			<item label="Terminal en tant que root">
			<action name="Execute">
				<command>
                    gksudo x-terminal-emulator
                </command>
			</action>
			</item>
			<item label="Paramètres de Login">
				<action name="Execute">
					<command>gksudo bl-text-editor /etc/lightdm/lightdm-gtk-greeter.conf /etc/lightdm/lightdm.conf</command>
				</action>
			</item>
			<item label="Gestion de partitions GParted">
				<action name="Execute">
					<command>gksudo gparted</command>
				</action>
			</item>
			<item label="Éditez les Alternatives Debian ">
				<action name="Execute">
					<command>gksudo galternatives</command>
				</action>
			</item>
			<separator/>
			<item label="À propos de Bunsen Alternatives">
				<action name="Execute">
					<execute>zenity --text-info --title=&quot;About Bunsen Alternatives&quot; --filename=&quot;/usr/share/bunsen/bunsen-docs/helpfile-bl-alternatives.txt&quot; --width=900 --height=700</execute>
				</action>
			</item>
		</menu>
		<menu execute="bl-help-pipemenu" id="help" label="Aide"/>
		<separator/>
		<menu execute="bl-kb-pipemenu" id="keybinds" label="Affichez les raccourcis (Keybinds)"/>
		<separator/>
		<item label="Verrouillage Écran">
			<action name="Execute">
				<command>bl-lock</command>
			</action>
		</item>
		<item label="Éteindre">
			<action name="Execute">
				<command>bl-exit</command>
			</action>
		</item>
	</menu>
</openbox_menu>

Offline

#2 2015-11-11 11:32:33

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: menu Openbox français / french

Wow, thanks for that rebooteux!

Hou la la! Merci pour ça, rebooteux!

I have put code tags around your translation to make it a bit more readable wink


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#3 2015-11-11 11:35:01

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,046

Re: menu Openbox français / french

Nice rebooteux - you might start a trend here - OpenBox in «pick a language».

Thank you


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#4 2015-11-11 14:03:37

hhh
Meep!
Registered: 2015-09-17
Posts: 9,294
Website

Re: menu Openbox français / french

Move to Scripts, Tutorials & Tricks?

Online

#5 2015-11-12 21:36:29

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: menu Openbox français / french

^ Agree.

Offline

#6 2015-11-13 03:06:25

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,543
Website

Re: menu Openbox français / french

^^also agree. It's a contribution, more than a suggestion.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#7 2015-11-13 06:52:42

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: menu Openbox français / french

/Moved to Scripts, Tutorials & Tips


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#8 2016-02-04 00:09:39

rebooteux
New Member
Registered: 2015-11-11
Posts: 2

Re: menu Openbox français / french

Hello
here a french traduction of /usr/bin/bl-exit
traduction française de la fenêtre d'extinction d'Openbox/Bunsenlabs

HNY to "Bunsenlaborers"
Le Rebooteux

PS: c'est pas grand chose mais ça m'embêtait et c'est un bon moyen de découvrir Bunsenlabs

#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-

import gtk
import pygtk
pygtk.require('2.0')

import getopt
import getpass
import subprocess
import sys

class bl_exit(gtk.Window):
    """A dialog offering the user to log out, suspend, reboot or shut down."""

    def __init__(self):
        gtk.Window.__init__(self)
        self.set_title("Déconnecter " + getpass.getuser() + "? Choisissez une option:")
        self.set_border_width(5)
        self.set_size_request(500, 80)
        self.set_resizable(False)
        self.set_keep_above(True)
        self.stick
        self.set_position(gtk.WIN_POS_CENTER)
        self.connect("delete_event", gtk.main_quit)
        windowicon = self.render_icon(gtk.STOCK_QUIT, gtk.ICON_SIZE_DIALOG)
        self.set_icon(windowicon)

        # Cancel key (Escape)
        accelgroup = gtk.AccelGroup()
        key, mod = gtk.accelerator_parse('Escape')
        accelgroup.connect_group(key, mod, gtk.ACCEL_VISIBLE, gtk.main_quit)
        self.add_accel_group(accelgroup)

        self._construct_ui()

    def _construct_ui(self):
        self._button_box = gtk.HBox()
        self._add_button(stock=gtk.STOCK_CANCEL, action=self._cancel_action)
        self._add_button(label="_Se déconnecter", action=self._logout_action)
        self._add_button(label="_Mettre en veille", action=self._suspend_action)
        self._add_button(label="_Redémarrer", action=self._reboot_action)
        self._add_button(label="_Éteindre", action=self._shutdown_action)

        self._status = gtk.Label()
        label_box = gtk.HBox()
        label_box.pack_start(self._status)

        vbox = gtk.VBox()
        vbox.pack_start(self._button_box)
        vbox.pack_start(label_box)

        self.add(vbox)
        self.show_all()

    def _add_button(self, action, label=None, stock=None):
        if stock is not None:
            button = gtk.Button(stock=stock)
        else:
            button = gtk.Button(label=label)
        button.set_border_width(4)
        button.connect("clicked", action)
        self._button_box.pack_start(button)

    def _disable_buttons(self):
        self._button_box.foreach(lambda button: button.set_sensitive(False))

    def _cancel_action(self, button):
        self._disable_buttons()
        gtk.main_quit()

    def _logout_action(self, button):
        self._disable_buttons()
        self._status.set_label("Sortie d'Openbox, patientez SVP...")
        logout()
        gtk.main_quit()

    def _suspend_action(self, button):
        self._disable_buttons()
        self._status.set_label("Mise en veille, patientez SVP...")
        suspend()
        gtk.main_quit()

    def _reboot_action(self, button):
        self._disable_buttons()
        self._status.set_label("Redémarrage, patientez SVP...")
        reboot()

    def _shutdown_action(self, button):
        self._disable_buttons()
        self._status.set_label("Extinction, patientez SVP...")
        poweroff()

def call(*args):
    try:
        subprocess.call(args)
    except OSError as e:
        print >>sys.stderr, "Execution failed: ", e

def send_dbus(string):
    call("dbus-send", "--print-reply", "--system", "--dest=org.freedesktop.login1",
            "/org/freedesktop/login1", "org.freedesktop.login1.Manager.{}".format(string),
            "boolean:true")

def logout():
    call("openbox", "--exit")

def suspend():
    call("bl-lock")
    send_dbus("Suspend")

def reboot():
    send_dbus("Reboot")

def poweroff():
    send_dbus("PowerOff")

def print_usage(status):
    print ("bl-exit: usage:\n" \
        "  -h, --help      show this message and exit\n" \
        "  -l, --logout    log out from openbox\n" \
        "  -s, --suspend   suspend the system\n" \
        "  -r, --reboot    reboot the system\n" \
        "  -p, --poweroff  power the system down")
    sys.exit(status)

def main(argv):
    try:
        opts, args = getopt.getopt(argv, "hlsrp", ["help","logout","suspend","reboot","poweroff"])
    except getopt.GetoptError:
        print_usage(1)
    for opt, arg in opts:
        if opt in ("-h", "--help"):
            print_usage(0)
        elif opt in ("-l", "--logout"):
            logout()
            sys.exit(0)
        elif opt in ("-s", "--suspend"):
            suspend()
            sys.exit(0)
        elif opt in ("-r", "--reboot"):
            reboot()
            sys.exit(0)
        elif opt in ("-p", "--poweroff"):
            poweroff()
            sys.exit(0)

    go = bl_exit()
    gtk.main()

if __name__ == "__main__":
    main(sys.argv[1:])

Offline

Board footer

Powered by FluxBB