Page 1 of 1

"Internal Posting" label replace

Posted: 13 Mar 2019, 08:22
by BazooQa
Greetings, guys
I am so scared to mess it up, because my OpenCats installation goes straight into production stage.
Any chance I can replace the "Internal Posting" phrase to my company name? My boss is insisting :mrgreen:
Went through the source code, the only place where it has any sense to edit is
/modules/settings/SettingsUI.php

Code: Select all

$companyIDInternal = $companies->add(
                'Internal Postings', '', '', '', '', '', '', '', '', '', '',
                '', '', 'Internal postings.', $this->_userID, $this->_userID
            );
Which doesn't change the label.
And related question: should I really use the Internal Posting feauture for my company, or I should use my company's departments as "companies" in OpenCats? I am a hire manager for one company with departments in it.

Thanks in advance.

Re: "Internal Posting" label replace

Posted: 13 Mar 2019, 13:48
by dveos
1. You would need to change the Internal Postings company name in the company table through phpmyadmin
2. You would most likely have to change the Add.tpl and Edit.tpl files in modules/joborder to reflect your company name (for when posting jobs etc.)
- I would refer to the line number but assume mine would be different to yours.
- You are looking for something like:- '<?php echo($this->defaultCompanyID); ?>'; ">&nbsp;Internal Posting<br />

Personally I would have just one company record and link each corresponding job order to the right department.

Hope this helps :)

Re: "Internal Posting" label replace

Posted: 13 Mar 2019, 14:14
by RussH
Thanks @dveos!

Re: "Internal Posting" label replace

Posted: 13 Mar 2019, 15:00
by BazooQa
Thank you very much!
Offtopic: I am translating it to Russian, Ukrainian and Georgian languages simultaneously by going through the source code (not for selling purposes of course). If there is a good way to translate it, like po/mo files, so that I just can use PoEdit app without "coding", I will definitely contribute into it.