⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mergelocale.pl

📁 主要用于监控网络流量并动态产生可视化结果
💻 PL
字号:
#!/usr/bin/perl## usage: ./mergelocale.pl skeleton.pm0 lang1.pmd lang2.pmd# the script then creates locales_mrtg.pm## If you want to modify a locale, modify the pmd file and rerun # this script and copy the generated locales_mrtg.pm to the run directory.## If you want to translate a locale, copy one of the existing locales and # translate. Then rerun and copy. #################################################################### Distributed under the GNU copyleft####################################################################open(OUTFILE,"> locales_mrtg.pm");@patchdb=('PATCHTAG\s*00','PATCHTAG\s*10','PATCHTAG\s*20','PATCHTAG\s*30','PATCHTAG\s*40','PATCHTAG\s*50','PATCHTAG\s*60',);while(@ARGV){  push(@languages,shift);};foreach $patchtag (@patchdb){  for $i (@languages)  {    open(LANGF,"< $i");    $patch="";    while(<LANGF>)    {      if(/\#.\S*PATCHTAG/)      {         $patch=/$patchtag/;      }      else      {        if($patch) { print OUTFILE $_; };      };    };  };};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -