Skip to content

Instantly share code, notes, and snippets.

@mjf
Created August 3, 2012 08:27
Show Gist options
  • Save mjf/3245844 to your computer and use it in GitHub Desktop.
Save mjf/3245844 to your computer and use it in GitHub Desktop.
Translate output of sipcalc(1) to Czech language
#! /bin/sed -f
# Translate output of sipcalc(1) to Czech language
# Copyright (C) 2009 Matous Jan Fialka, <http://mjf.cz/>
# Released under the terms of The MIT License
#
# Usage: sipcalc <net>[/<mask>] | sipcalc-translate-to-czech.sed
# Both IPv4 and IPv6 output of sipcalc(1)
s/^Network range/Sitovy rozsah/
# IPv4
s/^Host address/Adresa hosta/
s/^Network address/Adresa site/
s/^Network mask/Maska site/
s/^Broadcast address/Adresa broadcastu/
s/^Cisco wildcard\t/Wildcard pro Cisco/
s/^Addresses in network/Pocet adres v siti/
s/^Usable range\t/Vyuzitelny rozsah/
# IPv6
s/^Expanded Address/Rozvinuty tvar adresy/
s/^Compressed address/Zkraceny tvar adresy/
s/^Subnet prefix (masked)/Maskovana podsit/
s/^Address ID (masked)/Maskovane ID adresy/
s/^Prefix address/Adresa prefixu/
s/^Prefix length/Delka prefixu/
s/^Address type/Druh adresy/
s/^Comment\t/Komentar/
# Extension for sipcalc-add-ipv[46]-default-route.awk
s/^Default route (gateway)/Vychozi routa (brana)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment