Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8607415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:21:09+00:00 2026-06-12T03:21:09+00:00

I am using Codeigniter! What will be the best way to translate month names.

  • 0

I am using Codeigniter! What will be the best way to translate month names. I have a date in mysql timestamp like this:
2012-09-22 11:21:53
I can convert it to 'September 22, 2012' with php date() function. I want to rename 'September' to 'Sentýabr'. Can set_locale() function can do this. By the way it is Turkmen Language.
thank you.


OK , i created some php file to check it indivudally like this:

cool.php

<?php setlocale(LC_ALL,'ru_RU');
echo strftime('%B',time());
?>

Returns September. What might be the problem.


I have

  /* Set locale to Turkmen */
  setlocale(LC_ALL, 'tk');

And

  echo strftime( '%B',time());

Result: returns September

I need it return September in my language

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:21:10+00:00Added an answer on June 12, 2026 at 3:21 am

    You can use str_ireplace() with arrays for names in english, and equivalent for names in turkmen, in same order.

    Something like this:

    $nmeng = array('january', 'february', ..);
    $nmtur = array('ocak', 'subat', ...);
    $dt = 'September 22, 2012';
    $dt = str_ireplace($nmeng, $nmtur, $dt);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using CodeIgniter in my application. I have a code like this $this->db->where('a.PreferenceID
I am planning a new website with codeigniter using wordpress. this site will contain
I am developing a website using Codeigniter that will have different subdomains for different
I have a web site done using codeigniter php framework and mysql, i have
I'm working on a project, using CodeIgniter, that will have to process credit card
I'm using codeigniter for a project. The URL is segmented like this: example.com/admin/events example.com/admin/events/add
I am using codeigniter to develop my web based application. This will be used
I am using Codeigniter and want to have SEO-friendly URLs. There will be 2
I'm using codeigniter framework and I'm getting this error when I've submitted my form:
I have been using CodeIgniter all these while, and have solid foundation in OOP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.