Is it possible to build a *.po file to *.mo using the terminal?
Currently, I have to edit the *.po file in my text editor, save it, load it via Poedit and save it again.
I am working on ubuntu.
Use msgfmt
Msgfmt /path/to.PO -o path/to/new.mo
Related
I am using Flutter to generate the lcov file and now I want to use WSL to generate the HTML file for reading the data. How can I achieve this?
First of all, after generating the lcov.info files on windows you must replace all \ characters for / because linux can't understand the backslashes.
Then you can simply invoke the linux command for lcov generation through any windows terminal via:
wsl genhtml coverage/lcov.info -o coverage/output/
You invoke this command inside the project you are working on.
The first parameter coverage/lcov.info is the path for the lcov file.
The second parameter -o coverage/output/ is the output folder where the html files will be placed.
I'm trying to run HTML for the first time in VS code, but when I run it, it says
"google-chrome" is not recognized as an internal or external
command,operable program or batch file.
A screenshot of my problem has been attached below.
How can this be fixed?
You have to save that file with the name that browser can recognize, it should look something like 'filename.html'. Then you can open it with a web server application like xampp, or just open it on your file explorer.
The issue is that google-chrome is not a recognized command in Windows (it is in Linux distros).
The easiest way to make it work is saving the ".html" file with a proper name (something.html) and then use the command cd "C:\Users\LGU BATO\Desktop\html\" && something.html.
An explanation of this command is:
First, it will cd into the directory, as listed on the screenshot. This changes the directory of the command prompt window.
It will then open the file with your default browser.
I just installed Neovim and created a simple init.vim file (located at HOME/.config/nvim/init.vim), and when I do :source % the script works, but when I exit and reopen Neovim, the file doesn't get loaded and I get the normal Neovim without the configurations I added to the file... How can I let Neovim load init.vim?
Try to run Neovim with -V option, which will dump the startup log to the given file:
nvim -V /tmp/nvim.log
Then open the created log file and carefully read the lines. It's hard to say what could be wrong there, but you may see which configuration files were loaded and, perhaps, the warnings when reading some files.
For example, my log file contains the following line:
continuing in /home/jubnzv/.config/nvim/init.vim
Which mean that init.vim was loaded.
Try to find the similar line in your log. If you don't see it, please check the filepath and permissions for the configuration file.
If you are on Linux based OS then init.vim or init.lua file should be under $HOME/.config/NVIM/init.vim
In windows OS it should be under
C:\Users\filip\AppData\Local\nvim\init.vim
:source % Works because it forces NVIM to source file opened in current buffer.
In MacOS I found the following error after running nvim -V /tmp/nvim.log(as in #jubnzv's answer):
E5422: Conflicting configs: "/Users/lernerzhang/.config/nvim/init.lua" "/Users/lernerzhang/.config/nvim/init.vim"
Then I kept the init.vim and deleted init.lua, and moved the content of init.lua file to ~/.config/nvim/lua/config.lua and sourced the config.lua file in init.vim by adding this line into it:
lua require('config')
I am simply trying to install swift on linux
I have downloaded the files from swift.org, extracted .tar files and used export command to include the path after that when I use swift --version it correctly shows the version 5.3.3 but when I close the terminal and try to open the swift command terminal it says command not found.
What is happening here? I need to include the path every time I open the terminal.
The export command just adds the value to path for the current session. When you log out and in again, it will reset.
You need to add this to your shell resource file so that it gets added to the path every time you log in. The file you need to edit will be called .zshrc or .bash_profile or something similar. You should start by opening the command line on your computer and verifying what shell you are running by typing:
echo $SHELL
This will return something like /bin/ksh or /bin/bash or similar. Then do a little internet searching to find out what the resource file is called for that shell. Then edit your resource file to add the Swift path to your $PATH.
I have a test_12_22.xml file. I want to see the contents of the file. How can I achieve this using command line in MAC OS Catalina.
I tried open test_12_22.xml, but it opened a Word Document with junk information.
I think you could do that with the following command
open test_12_22.xml -a TextEdit
This will open your XML file with TextEdit, which should be able to read it.